dsh-standards 1.6.9 → 1.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/31-DS-C/346/235/241/346/254/276.md +62 -55
- package/31-DSH-ENTRY/345/205/245/351/227/250/350/247/204/350/214/203.md +2 -1
- package/34-/344/270/211/345/261/202/345/210/206/347/272/247/346/250/241/345/236/213-GB-GBT-GBZ/347/261/273/346/257/224.md +2 -2
- package/40-checker/README.md +6 -6
- package/40-checker/bin/dsh-flow-collect.mjs +0 -0
- package/40-checker/bin/dsh-plugin-verify.mjs +0 -0
- package/40-checker/fixtures/bad/index.mjs +0 -0
- package/40-checker/fixtures/bad/package.json +0 -0
- package/40-checker/fixtures/bad-manifest/index.js +0 -0
- package/40-checker/fixtures/bad-manifest/package.json +0 -0
- package/40-checker/fixtures/bundle/cordis.patch.yml +0 -0
- package/40-checker/fixtures/bundle/package.json +0 -0
- package/40-checker/fixtures/bundle/server.mjs +0 -0
- package/40-checker/fixtures/bundle-patch-only/cordis.patch.yml +0 -0
- package/40-checker/fixtures/bundle-patch-only/package.json +0 -0
- package/40-checker/fixtures/bundle-v0/cordis.patch.yml +0 -0
- package/40-checker/fixtures/bundle-v0/package.json +0 -0
- package/40-checker/fixtures/bundle-v0/server.mjs +0 -0
- package/40-checker/fixtures/c12-command-arg/index.mjs +0 -0
- package/40-checker/fixtures/c12-command-arg/package.json +0 -0
- package/40-checker/fixtures/c12-comment/index.mjs +0 -0
- package/40-checker/fixtures/c12-comment/package.json +0 -0
- package/40-checker/fixtures/c12-compare/index.mjs +0 -0
- package/40-checker/fixtures/c12-compare/package.json +0 -0
- package/40-checker/fixtures/c12-doc-string/index.mjs +0 -0
- package/40-checker/fixtures/c12-doc-string/package.json +0 -0
- package/40-checker/fixtures/c12-grant/index.mjs +0 -0
- package/40-checker/fixtures/c12-grant/package.json +0 -0
- package/40-checker/fixtures/c12-string/index.mjs +0 -0
- package/40-checker/fixtures/c12-string/package.json +0 -0
- package/40-checker/fixtures/client-missing/client.js +0 -0
- package/40-checker/fixtures/client-missing/index.js +0 -0
- package/40-checker/fixtures/client-missing/package.json +0 -0
- package/40-checker/fixtures/declaration-file/index.d.ts +0 -0
- package/40-checker/fixtures/declaration-file/index.mjs +0 -0
- package/40-checker/fixtures/declaration-file/package.json +0 -0
- package/40-checker/fixtures/flow-config/index.js +0 -0
- package/40-checker/fixtures/flow-config/package.json +0 -0
- package/40-checker/fixtures/fs-write/index.mjs +0 -0
- package/40-checker/fixtures/fs-write/package.json +0 -0
- package/40-checker/fixtures/good/index.mjs +0 -0
- package/40-checker/fixtures/good/package.json +0 -0
- package/40-checker/fixtures/hang/index.mjs +0 -0
- package/40-checker/fixtures/hang/package.json +0 -0
- package/40-checker/fixtures/import-local-side-effect/index.mjs +0 -0
- package/40-checker/fixtures/import-local-side-effect/package.json +0 -0
- package/40-checker/fixtures/import-local-side-effect/side-effectful.mjs +0 -0
- package/40-checker/fixtures/import-open-readonly/index.mjs +0 -0
- package/40-checker/fixtures/import-open-readonly/package.json +0 -0
- package/40-checker/fixtures/import-package-only/index.mjs +0 -0
- package/40-checker/fixtures/import-package-only/package.json +0 -0
- package/40-checker/fixtures/import-parse-error/index.mjs +0 -0
- package/40-checker/fixtures/import-parse-error/package.json +0 -0
- package/40-checker/fixtures/import-side-effect/index.mjs +0 -0
- package/40-checker/fixtures/import-side-effect/package.json +0 -0
- package/40-checker/fixtures/import-side-effect-nonentry/index.mjs +0 -0
- package/40-checker/fixtures/import-side-effect-nonentry/package.json +0 -0
- package/40-checker/fixtures/import-side-effect-nonentry/selfcheck.mjs +0 -0
- package/40-checker/fixtures/import-void-main/index.mjs +0 -0
- package/40-checker/fixtures/import-void-main/package.json +0 -0
- package/40-checker/fixtures/known-answer/expected.json +0 -0
- package/40-checker/fixtures/market-index-real.json +0 -0
- package/40-checker/fixtures/market-index.json +0 -0
- package/40-checker/fixtures/negative/bad-entry/package.json +0 -0
- package/40-checker/fixtures/negative/no-entry/package.json +0 -0
- package/40-checker/fixtures/negative/no-patch/package.json +0 -0
- package/40-checker/fixtures/negative/root-missing/cordis.patch.yml +0 -0
- package/40-checker/fixtures/negative/root-missing/package.json +0 -0
- package/40-checker/fixtures/negative/workspace/package.json +0 -0
- package/40-checker/fixtures/no-source/package.json +0 -0
- package/40-checker/fixtures/parse-error-nonentry/index.mjs +0 -0
- package/40-checker/fixtures/parse-error-nonentry/package.json +0 -0
- package/40-checker/fixtures/parse-error-nonentry/references/broken.js +0 -0
- package/40-checker/fixtures/security/sec11-cred-declared/index.mjs +0 -0
- package/40-checker/fixtures/security/sec11-cred-declared/package.json +0 -0
- package/40-checker/fixtures/security/sec11-cred-list/index.mjs +0 -0
- package/40-checker/fixtures/security/sec11-cred-list/package.json +0 -0
- package/40-checker/fixtures/security/sec11-cred-undeclared/index.mjs +0 -0
- package/40-checker/fixtures/security/sec11-cred-undeclared/package.json +0 -0
- package/40-checker/fixtures/security/sec15-clean/index.mjs +0 -0
- package/40-checker/fixtures/security/sec15-clean/package.json +0 -0
- package/40-checker/fixtures/security/sec15-install-cred/index.mjs +0 -0
- package/40-checker/fixtures/security/sec15-install-cred/install.js +0 -0
- package/40-checker/fixtures/security/sec15-install-cred/package.json +0 -0
- package/40-checker/fixtures/security/sec15-install-curl/index.mjs +0 -0
- package/40-checker/fixtures/security/sec15-install-curl/package.json +0 -0
- package/40-checker/fixtures/security/sec15-install-curl/scripts/install.sh +0 -0
- package/40-checker/fixtures/security/sec15-install-danger/index.mjs +0 -0
- package/40-checker/fixtures/security/sec15-install-danger/install.js +0 -0
- package/40-checker/fixtures/security/sec15-install-danger/package.json +0 -0
- package/40-checker/fixtures/security/sec15-install-download-safe/index.js +0 -0
- package/40-checker/fixtures/security/sec15-install-download-safe/package.json +0 -0
- package/40-checker/fixtures/security/sec15-install-download-safe/scripts/install.js +0 -0
- package/40-checker/fixtures/security/sec15-install-download-safe/scripts/local-util.cjs +0 -0
- package/40-checker/fixtures/security/sec15-install-dynamic/index.js +0 -0
- package/40-checker/fixtures/security/sec15-install-dynamic/package.json +0 -0
- package/40-checker/fixtures/security/sec15-install-dynamic/scripts/install.js +0 -0
- package/40-checker/fixtures/security/sec15-install-remote-literal/index.js +0 -0
- package/40-checker/fixtures/security/sec15-install-remote-literal/package.json +0 -0
- package/40-checker/fixtures/security/sec15-install-remote-literal/scripts/install.js +0 -0
- package/40-checker/fixtures/security/sec15-install-safe/index.mjs +0 -0
- package/40-checker/fixtures/security/sec15-install-safe/install.js +0 -0
- package/40-checker/fixtures/security/sec15-install-safe/package.json +0 -0
- package/40-checker/fixtures/security/sec15-missing-ref/index.mjs +0 -0
- package/40-checker/fixtures/security/sec15-missing-ref/package.json +0 -0
- package/40-checker/fixtures/security/sec15-node/index.mjs +0 -0
- package/40-checker/fixtures/security/sec15-node/package.json +0 -0
- package/40-checker/fixtures/security/sec15-node/scripts/build.mjs +0 -0
- package/40-checker/fixtures/security/sec15-pipe/index.mjs +0 -0
- package/40-checker/fixtures/security/sec15-pipe/package.json +0 -0
- package/40-checker/fixtures/security/sec16-base64-clean/index.mjs +0 -0
- package/40-checker/fixtures/security/sec16-base64-clean/package.json +0 -0
- package/40-checker/fixtures/security/sec16-base64-eval/index.mjs +0 -0
- package/40-checker/fixtures/security/sec16-base64-eval/package.json +0 -0
- package/40-checker/fixtures/security/sec16-client/index.mjs +0 -0
- package/40-checker/fixtures/security/sec16-client/lib/client.js +0 -0
- package/40-checker/fixtures/security/sec16-client/package.json +0 -0
- package/40-checker/fixtures/security/sec16-declared/index.mjs +0 -0
- package/40-checker/fixtures/security/sec16-declared/package.json +0 -0
- package/40-checker/fixtures/security/sec16-eval/index.mjs +0 -0
- package/40-checker/fixtures/security/sec16-eval/package.json +0 -0
- package/40-checker/fixtures/security/sec16-exec-curl/index.mjs +0 -0
- package/40-checker/fixtures/security/sec16-exec-curl/package.json +0 -0
- package/40-checker/fixtures/security/sec16-import-only/index.mjs +0 -0
- package/40-checker/fixtures/security/sec16-import-only/package.json +0 -0
- package/40-checker/fixtures/security/sec16-require/index.mjs +0 -0
- package/40-checker/fixtures/security/sec16-require/package.json +0 -0
- package/40-checker/fixtures/security/sec16-spawn-shell/index.mjs +0 -0
- package/40-checker/fixtures/security/sec16-spawn-shell/package.json +0 -0
- package/40-checker/fixtures/security/sec16-subprocess-safe/index.mjs +0 -0
- package/40-checker/fixtures/security/sec16-subprocess-safe/package.json +0 -0
- package/40-checker/fixtures/security/sec16-vendor-bundle/lib/index.js +0 -0
- package/40-checker/fixtures/security/sec16-vendor-bundle/package.json +0 -0
- package/40-checker/fixtures/security/sec16-vendor-decoy/lib/index.js +0 -0
- package/40-checker/fixtures/security/sec16-vendor-decoy/package.json +0 -0
- package/40-checker/fixtures/security/sec16-vendor-path/index.mjs +0 -0
- package/40-checker/fixtures/security/sec16-vendor-path/package.json +0 -0
- package/40-checker/fixtures/security/sec16-vendor-path/vendor/schemastery.mjs +0 -0
- package/40-checker/fixtures/security/sec17-alias-clean/data.txt +0 -0
- package/40-checker/fixtures/security/sec17-alias-clean/index.mjs +0 -0
- package/40-checker/fixtures/security/sec17-alias-clean/package.json +0 -0
- package/40-checker/fixtures/security/sec17-alias-read/index.mjs +0 -0
- package/40-checker/fixtures/security/sec17-alias-read/package.json +0 -0
- package/40-checker/fixtures/security/sec17-base64-path/index.mjs +0 -0
- package/40-checker/fixtures/security/sec17-base64-path/package.json +0 -0
- package/40-checker/fixtures/security/sec17-base64-path-clean/data/config.json +0 -0
- package/40-checker/fixtures/security/sec17-base64-path-clean/index.mjs +0 -0
- package/40-checker/fixtures/security/sec17-base64-path-clean/package.json +0 -0
- package/40-checker/fixtures/security/sec17-cred-exfil/index.mjs +0 -0
- package/40-checker/fixtures/security/sec17-cred-exfil/package.json +0 -0
- package/40-checker/fixtures/security/sec17-env/index.mjs +0 -0
- package/40-checker/fixtures/security/sec17-env/package.json +0 -0
- package/40-checker/fixtures/security/sec17-home-env/index.js +0 -0
- package/40-checker/fixtures/security/sec17-home-env/package.json +0 -0
- package/40-checker/fixtures/security/sec17-home-env-clean/index.mjs +0 -0
- package/40-checker/fixtures/security/sec17-home-env-clean/package.json +0 -0
- package/40-checker/fixtures/security/sec17-seam/index.mjs +0 -0
- package/40-checker/fixtures/security/sec17-seam/package.json +0 -0
- package/40-checker/fixtures/security/sec17-ssh/index.mjs +0 -0
- package/40-checker/fixtures/security/sec17-ssh/package.json +0 -0
- package/40-checker/fixtures/security/sec18-bad/index.mjs +0 -0
- package/40-checker/fixtures/security/sec18-bad/package.json +0 -0
- package/40-checker/fixtures/security/sec18-good/index.mjs +0 -0
- package/40-checker/fixtures/security/sec18-good/package.json +0 -0
- package/40-checker/fixtures/security/sec18-split-fetch/index.mjs +0 -0
- package/40-checker/fixtures/security/sec18-split-fetch/package.json +0 -0
- package/40-checker/fixtures/security/sec18-split-fetch-clean/index.mjs +0 -0
- package/40-checker/fixtures/security/sec18-split-fetch-clean/package.json +0 -0
- package/40-checker/fixtures/security/sec18-undeclared/index.mjs +0 -0
- package/40-checker/fixtures/security/sec18-undeclared/package.json +0 -0
- package/40-checker/fixtures/security/sec19-blob/index.mjs +0 -0
- package/40-checker/fixtures/security/sec19-blob/package.json +0 -0
- package/40-checker/fixtures/security/sec19-clean/index.mjs +0 -0
- package/40-checker/fixtures/security/sec19-clean/package.json +0 -0
- package/40-checker/fixtures/security/sec19-wasm/blob.wasm +0 -0
- package/40-checker/fixtures/security/sec19-wasm/index.mjs +0 -0
- package/40-checker/fixtures/security/sec19-wasm/package.json +0 -0
- package/40-checker/fixtures/security/sec20-unwrapped/index.mjs +0 -0
- package/40-checker/fixtures/security/sec20-unwrapped/package.json +0 -0
- package/40-checker/fixtures/security/sec20-wrapped/index.mjs +0 -0
- package/40-checker/fixtures/security/sec20-wrapped/package.json +0 -0
- package/40-checker/fixtures/security/sec21-known/index.mjs +0 -0
- package/40-checker/fixtures/security/sec21-known/package.json +0 -0
- package/40-checker/fixtures/security/sec21-typosquat/index.mjs +0 -0
- package/40-checker/fixtures/security/sec21-typosquat/package.json +0 -0
- package/40-checker/fixtures/security/sec22-attested/index.mjs +0 -0
- package/40-checker/fixtures/security/sec22-attested/package.json +0 -0
- package/40-checker/fixtures/security/sec22-none/index.mjs +0 -0
- package/40-checker/fixtures/security/sec22-none/package.json +0 -0
- package/40-checker/package.json +0 -0
- package/40-checker/samples/README.md +0 -0
- package/40-checker/samples/entry18.json +1 -1
- package/40-checker/samples/frame.json +0 -0
- package/40-checker/scripts/apply-overlay.mjs +0 -0
- package/40-checker/scripts/attestation-check.mjs +0 -0
- package/40-checker/scripts/build-offline-kit.mjs +4 -1
- package/40-checker/scripts/build-sidecar.mjs +78 -9
- package/40-checker/scripts/bundle-smoke.mjs +0 -0
- package/40-checker/scripts/claim-check.mjs +0 -0
- package/40-checker/scripts/clause-map.mjs +0 -0
- package/40-checker/scripts/collect-fixtures.mjs +5 -1
- package/40-checker/scripts/dashboard.mjs +0 -0
- package/40-checker/scripts/dco-check.mjs +0 -0
- package/40-checker/scripts/dependabot-check.mjs +0 -0
- package/40-checker/scripts/doc-commands-check.mjs +0 -0
- package/40-checker/scripts/entry-scan.mjs +0 -0
- package/40-checker/scripts/entry-validate.mjs +0 -0
- package/40-checker/scripts/entry18-attribution.mjs +0 -0
- package/40-checker/scripts/entry18-ci.mjs +0 -0
- package/40-checker/scripts/entry18-realweb-summary.mjs +0 -0
- package/40-checker/scripts/entry18-web.mjs +0 -0
- package/40-checker/scripts/evidence-chain.mjs +0 -0
- package/40-checker/scripts/flow-collect.mjs +7 -6
- package/40-checker/scripts/flow-index.mjs +0 -0
- package/40-checker/scripts/flow-sample-ci.mjs +0 -0
- package/40-checker/scripts/governance-check.mjs +0 -0
- package/40-checker/scripts/host-farm.mjs +0 -0
- package/40-checker/scripts/journey-config-observe.mjs +0 -0
- package/40-checker/scripts/journey-disclosure-shape.mjs +0 -0
- package/40-checker/scripts/journey-runtime.mjs +0 -0
- package/40-checker/scripts/journey.mjs +0 -0
- package/40-checker/scripts/label-drift.mjs +0 -0
- package/40-checker/scripts/label-sync.mjs +0 -0
- package/40-checker/scripts/label-verify.mjs +0 -0
- package/40-checker/scripts/landlock-exec.c +0 -0
- package/40-checker/scripts/level-audit.mjs +0 -0
- package/40-checker/scripts/m1-sidecar.mjs +0 -0
- package/40-checker/scripts/m2-runner.mjs +5 -2
- package/40-checker/scripts/round-robin.mjs +0 -0
- package/40-checker/scripts/run-tests.mjs +0 -0
- package/40-checker/scripts/runtime-child.mjs +0 -0
- package/40-checker/scripts/sample-frame.mjs +0 -0
- package/40-checker/scripts/sample20-ci.mjs +0 -0
- package/40-checker/scripts/sample60-ci.mjs +0 -0
- package/40-checker/scripts/sign-evidence.mjs +0 -0
- package/40-checker/scripts/stale-check.mjs +0 -0
- package/40-checker/scripts/surveillance.mjs +0 -0
- package/40-checker/scripts/web-probe.mjs +0 -0
- package/40-checker/src/author-cli.mjs +1 -1
- package/40-checker/src/author-report.mjs +0 -0
- package/40-checker/src/bundle-static.mjs +0 -0
- package/40-checker/src/cli.mjs +11 -3
- package/40-checker/src/client-shape.mjs +0 -0
- package/40-checker/src/declarations.mjs +69 -5
- package/40-checker/src/flow-evidence.mjs +4 -3
- package/40-checker/src/index.mjs +1 -1
- package/40-checker/src/install-spec.mjs +0 -0
- package/40-checker/src/label.mjs +0 -0
- package/40-checker/src/manifest.mjs +6 -2
- package/40-checker/src/npm-command.mjs +22 -0
- package/40-checker/src/permissions.mjs +0 -0
- package/40-checker/src/remediation.mjs +0 -0
- package/40-checker/src/report.mjs +0 -0
- package/40-checker/src/result.mjs +0 -0
- package/40-checker/src/runtime-child.mjs +0 -0
- package/40-checker/src/runtime.mjs +0 -0
- package/40-checker/src/sandbox-env.mjs +0 -0
- package/40-checker/src/sandbox-run.mjs +0 -0
- package/40-checker/src/security.mjs +0 -0
- package/40-checker/src/semver.mjs +0 -0
- package/40-checker/src/signature.mjs +0 -0
- package/40-checker/src/util.mjs +0 -0
- package/40-checker/vendor/babel/README.md +0 -0
- package/40-checker/vendor/babel/index.cjs +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/LICENSE +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/README.md +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/lib/index.d.ts +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/lib/index.js +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-string-parser/package.json +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/LICENSE +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/README.md +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/identifier-browser.js +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/index.d.ts +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/helper-validator-identifier/package.json +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/CHANGELOG.md +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/LICENSE +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/README.md +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/bin/babel-parser.js +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/lib/index.d.ts +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/lib/index.js +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/package.json +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/parser/typings/babel-parser.d.ts +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/LICENSE +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/README.md +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/lib/index-legacy.d.ts +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/lib/index.d.ts +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/lib/index.js +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/lib/index.js.flow +0 -0
- package/40-checker/vendor/babel/node_modules/@babel/types/package.json +0 -0
- package/CHANGELOG.md +40 -0
- package/LICENSE +0 -0
- package/LICENSE-APACHE +0 -0
- package/LICENSE-CC-BY +0 -0
- package/NOTICE +0 -0
- package/NOTICE.md +0 -0
- package/README.en.md +11 -5
- package/README.es.md +5 -5
- package/README.hi.md +5 -5
- package/README.md +9 -3
- package/README.pt.md +5 -5
- package/SECURITY.md +0 -0
- package/bin/dsh-flow-collect.mjs +0 -0
- package/bin/dsh-levels.mjs +0 -0
- package/bin/dsh-standards.mjs +0 -0
- package/docs/BOOST-FIXTURES-2026-11-02.md +0 -0
- package/docs/DEVELOPER-JOURNEY.md +0 -0
- package/docs/HOST-J3-BUG-REPORT-DRAFT.md +0 -0
- package/docs/HOST-J3-CONFIG-REPRO-2026-11-02.md +0 -0
- package/docs/NAMING-FALLBACK.md +0 -0
- package/docs/SIGNING.md +0 -0
- package/docs/assets/dsh-standards-flow-dark.svg +0 -0
- package/docs/assets/dsh-standards-flow-light.svg +0 -0
- package/docs/assets/dsh-standards-flow-v3-dark.svg +0 -0
- package/docs/assets/dsh-standards-flow-v3-light.svg +0 -0
- package/docs/assets/dsh-standards-flow-v4-dark.svg +0 -0
- package/docs/assets/dsh-standards-flow-v4-light.svg +0 -0
- package/docs/assets/dsh-standards-hero-en-dark.webp +0 -0
- package/docs/assets/dsh-standards-hero-en-light.webp +0 -0
- package/docs/assets/dsh-standards-hero-zh-dark.webp +0 -0
- package/docs/assets/dsh-standards-hero-zh-light.webp +0 -0
- package/docs/coverage.md +1 -1
- package/docs/fork-policy.md +0 -0
- package/docs/full-test-plan-2026-11-02.md +0 -0
- package/docs/incident.md +0 -0
- package/docs/onboarding.md +0 -0
- package/docs/privacy.md +0 -0
- package/docs/release.md +0 -0
- package/docs/scope-security.md +0 -0
- package/docs/status-taxonomy.md +0 -0
- package/docs/sunset.md +0 -0
- package/docs/translating.md +0 -0
- package/package.json +1 -1
- package/spec/README.md +0 -0
- package/spec/boost/README.md +0 -0
- package/spec/clauses.json +0 -0
- package/spec/coverage-contract.md +0 -0
- package/spec/dsc-clauses.json +1 -1
- package/spec/entry/README.md +0 -0
- package/spec/examples/boost-card.example.json +2 -2
- package/spec/examples/flow-evidence.example.json +4 -4
- package/spec/flow/README.md +0 -0
- package/spec/flow-evidence.schema.json +0 -0
- package/spec/levels.json +0 -0
- package/spec/levels.schema.json +0 -0
- package/spec/reference-suite.json +9 -6
- package/spec/remediation.json +3 -3
- package/spec/schemas/advice.schema.json +0 -0
- package/spec/schemas/attestation.schema.json +0 -0
- package/spec/schemas/boost-card.schema.json +2 -2
- package/spec/schemas/conformance.schema.json +1 -2
- package/spec/schemas/evidence.schema.json +0 -0
- package/spec/schemas/report.schema.json +0 -0
- package/spec/schemas/sidecar.schema.json +0 -228
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/40-checker/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema": "dsh-entry18-manifest/1",
|
|
3
3
|
"description": "The 18 deduplicated ENTRY packages: 10 GitHub + 8 npm. id/name/version come from 40-checker/results/entry/18/summary.json. source/spec select the installable artifact: a published npm tarball at the exact version when it exists, otherwise a shallow clone of the repo.",
|
|
4
4
|
"profile": "base",
|
|
5
|
-
"targetDshVersion": "0.2.2-
|
|
5
|
+
"targetDshVersion": "0.2.2-rc.3",
|
|
6
6
|
"count": 18,
|
|
7
7
|
"sources": {
|
|
8
8
|
"github": 10,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -25,6 +25,7 @@ import os from 'node:os'
|
|
|
25
25
|
import path from 'node:path'
|
|
26
26
|
import crypto from 'node:crypto'
|
|
27
27
|
import { spawnSync } from 'node:child_process'
|
|
28
|
+
import { npmPackInvocation } from '../src/npm-command.mjs'
|
|
28
29
|
import { fileURLToPath } from 'node:url'
|
|
29
30
|
|
|
30
31
|
const HERE = path.dirname(fileURLToPath(import.meta.url))
|
|
@@ -131,7 +132,9 @@ function findTarball(root, explicit, version) {
|
|
|
131
132
|
if (fs.existsSync(candidate)) return { file: candidate, temporary: false }
|
|
132
133
|
}
|
|
133
134
|
const packDir = fs.mkdtempSync(path.join(os.tmpdir(), 'dsh-standards-pack-'))
|
|
134
|
-
const
|
|
135
|
+
const invocation = npmPackInvocation(process.platform, ['pack', '--ignore-scripts', '--pack-destination', packDir])
|
|
136
|
+
const run = spawnSync(invocation.command, invocation.args, {
|
|
137
|
+
shell: invocation.shell,
|
|
135
138
|
cwd: root,
|
|
136
139
|
encoding: 'utf8',
|
|
137
140
|
})
|
|
@@ -13,8 +13,15 @@
|
|
|
13
13
|
* Entry fields are a superset of the original `dsh-market-sidecar/1` shape
|
|
14
14
|
* (subject/levels/evidence/validity/lifecycle/selfAssessed are unchanged):
|
|
15
15
|
* title/repo/license from the published package.json, null when absent
|
|
16
|
-
* scope {dsh, cordis, platform} from
|
|
17
|
-
*
|
|
16
|
+
* scope {dsh, cordis, platform} from the package's OWN
|
|
17
|
+
* declarations (dsh.engines / npm engines / cordis
|
|
18
|
+
* peerDependencies+dependencies); null when the package
|
|
19
|
+
* declares nothing. A check anchor is never copied in:
|
|
20
|
+
* "checked at 0.2.2-rc.3" is not "requires 0.2.2-rc.3".
|
|
21
|
+
* anchor {dsh, cordis, commit, source, suspect}: the five-element
|
|
22
|
+
* anchor the audit actually ran under (from
|
|
23
|
+
* audit.checker.anchor), kept separate from scope so a
|
|
24
|
+
* reader can tell what was checked and what was declared.
|
|
18
25
|
* checks checker results as {id,result,coverage} only; detailed
|
|
19
26
|
* reasons stay in the report, never in the sidecar
|
|
20
27
|
* evidence url/sha256 kept for compatibility; reportUrl/
|
|
@@ -56,6 +63,8 @@ const FORBIDDEN = new Set(['advice', 'issuer', 'recordHash', 'verifyUrl', 'score
|
|
|
56
63
|
const NOT_CLAIMED = ['official', 'certification', 'security-audit', 'endorsement', 'ordering', 'comparison', 'warranty']
|
|
57
64
|
const CHECK_KEYS = new Set(['id', 'result', 'coverage'])
|
|
58
65
|
const SCOPE_KEYS = new Set(['dsh', 'cordis', 'platform'])
|
|
66
|
+
const ANCHOR_KEYS = new Set(['dsh', 'cordis', 'commit', 'source', 'suspect'])
|
|
67
|
+
const ANCHOR_SOURCES = new Set(['cli', 'host', 'default'])
|
|
59
68
|
const CHECKED_BY_KEYS = new Set(['checker', 'command', 'securityCommand'])
|
|
60
69
|
const SECURITY_KEYS = new Set(['state', 'checks', 'summary', 'command'])
|
|
61
70
|
const SECURITY_STATES = new Set(['checked', 'partial', 'not-run'])
|
|
@@ -260,19 +269,43 @@ function platformFromPackage(meta) {
|
|
|
260
269
|
return [os.join('/'), cpu.join('/')].filter(Boolean).join('-')
|
|
261
270
|
}
|
|
262
271
|
|
|
263
|
-
|
|
264
|
-
|
|
272
|
+
/**
|
|
273
|
+
* `scope` answers "what does this package declare it runs on?" — it is built
|
|
274
|
+
* only from the package's own manifest fields. A missing declaration stays
|
|
275
|
+
* null; the checker's own anchor must never be presented as a package
|
|
276
|
+
* requirement (that made 28 of 50 entries claim a 0.2.2-rc.3 range they never
|
|
277
|
+
* wrote, and leaked the old 4.0.6-alpha.1 default into 14 cordis scopes).
|
|
278
|
+
*/
|
|
279
|
+
function inferScope(meta) {
|
|
265
280
|
const dshEngines = meta?.dsh?.engines && typeof meta.dsh.engines === 'object' ? meta.dsh.engines : {}
|
|
266
281
|
const engines = meta?.engines && typeof meta.engines === 'object' ? meta.engines : {}
|
|
267
282
|
const peer = meta?.peerDependencies && typeof meta.peerDependencies === 'object' ? meta.peerDependencies : {}
|
|
268
283
|
const deps = meta?.dependencies && typeof meta.dependencies === 'object' ? meta.dependencies : {}
|
|
269
284
|
return {
|
|
270
|
-
dsh: firstString(dshEngines.dsh, engines.dsh
|
|
271
|
-
cordis: firstString(dshEngines.cordis, engines.cordis, peer['@deepseek-ai/cordis'], deps['@deepseek-ai/cordis']
|
|
285
|
+
dsh: firstString(dshEngines.dsh, engines.dsh),
|
|
286
|
+
cordis: firstString(dshEngines.cordis, engines.cordis, peer['@deepseek-ai/cordis'], deps['@deepseek-ai/cordis']),
|
|
272
287
|
platform: platformFromPackage(meta),
|
|
273
288
|
}
|
|
274
289
|
}
|
|
275
290
|
|
|
291
|
+
/**
|
|
292
|
+
* `anchor` answers "what did the checks run against?" — it is copied from the
|
|
293
|
+
* level audit, never from the package manifest and never defaulted here. A
|
|
294
|
+
* missing audit anchor stays absent; a partial one keeps null axes. `source`
|
|
295
|
+
* and `suspect` are the checker's runtimeSource three-state semantics.
|
|
296
|
+
*/
|
|
297
|
+
function inferAnchor(audit) {
|
|
298
|
+
const raw = audit?.checker?.anchor
|
|
299
|
+
if (!raw || typeof raw !== 'object' || Array.isArray(raw)) return null
|
|
300
|
+
const dsh = firstString(raw.dsh)
|
|
301
|
+
const cordis = firstString(raw.cordis)
|
|
302
|
+
const commit = firstString(raw.commit)
|
|
303
|
+
const source = firstString(raw.runtimeSource)
|
|
304
|
+
const suspect = typeof raw.suspect === 'boolean' ? raw.suspect : null
|
|
305
|
+
if (dsh === null && cordis === null && commit === null) return null
|
|
306
|
+
return { dsh, cordis, commit, source, suspect }
|
|
307
|
+
}
|
|
308
|
+
|
|
276
309
|
function extractChecks(report, name, version) {
|
|
277
310
|
if (!report || !Array.isArray(report.checks)) return []
|
|
278
311
|
if (report.subject && typeof report.subject === 'object') {
|
|
@@ -495,6 +528,7 @@ function entryFromAudit(audit, options, levelFile) {
|
|
|
495
528
|
const command = firstString(options.checkedCommand) ?? (levels.entry.claim === 'runtime'
|
|
496
529
|
? 'dsh-levels <package-dir> --format json'
|
|
497
530
|
: 'dsh-levels <package-dir> --no-runtime --format json')
|
|
531
|
+
const anchor = inferAnchor(audit)
|
|
498
532
|
|
|
499
533
|
return {
|
|
500
534
|
key: `${name}@${version}`,
|
|
@@ -503,7 +537,8 @@ function entryFromAudit(audit, options, levelFile) {
|
|
|
503
537
|
title: firstLine(meta.description),
|
|
504
538
|
repo: normalizeRepo(meta.repository),
|
|
505
539
|
license: normalizeLicense(meta.license),
|
|
506
|
-
scope: inferScope(meta
|
|
540
|
+
scope: inferScope(meta),
|
|
541
|
+
...(anchor ? { anchor } : {}),
|
|
507
542
|
levels,
|
|
508
543
|
checks,
|
|
509
544
|
...(security ? { security } : {}),
|
|
@@ -646,6 +681,33 @@ function validateSidecar(sidecar) {
|
|
|
646
681
|
}
|
|
647
682
|
}
|
|
648
683
|
}
|
|
684
|
+
// Optional and additive: entries produced before the scope/anchor split have
|
|
685
|
+
// no anchor. When present it records the check anchor, never a requirement.
|
|
686
|
+
if (entry.anchor !== undefined) {
|
|
687
|
+
if (!entry.anchor || typeof entry.anchor !== 'object' || Array.isArray(entry.anchor)) {
|
|
688
|
+
throw new Error(`${key}: anchor must be an object`)
|
|
689
|
+
}
|
|
690
|
+
for (const field of Object.keys(entry.anchor)) {
|
|
691
|
+
if (!ANCHOR_KEYS.has(field)) throw new Error(`${key}: anchor.${field} is not part of the sidecar contract`)
|
|
692
|
+
}
|
|
693
|
+
for (const field of ['dsh', 'cordis', 'commit']) {
|
|
694
|
+
const value = entry.anchor[field]
|
|
695
|
+
if (value !== null && value !== undefined && (typeof value !== 'string' || value === '')) {
|
|
696
|
+
throw new Error(`${key}: anchor.${field} must be a non-empty string or null`)
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
if (entry.anchor.commit !== undefined && entry.anchor.commit !== null && !HEX40.test(String(entry.anchor.commit))) {
|
|
700
|
+
throw new Error(`${key}: anchor.commit must be 40 hex chars or null`)
|
|
701
|
+
}
|
|
702
|
+
if (entry.anchor.source !== undefined && entry.anchor.source !== null && !ANCHOR_SOURCES.has(entry.anchor.source)) {
|
|
703
|
+
throw new Error(`${key}: anchor.source must be cli, host, default or null`)
|
|
704
|
+
}
|
|
705
|
+
if (entry.anchor.suspect !== undefined && entry.anchor.suspect !== null && typeof entry.anchor.suspect !== 'boolean') {
|
|
706
|
+
throw new Error(`${key}: anchor.suspect must be boolean or null`)
|
|
707
|
+
}
|
|
708
|
+
const recorded = ['dsh', 'cordis', 'commit'].filter(field => entry.anchor[field] !== null && entry.anchor[field] !== undefined)
|
|
709
|
+
if (recorded.length === 0) throw new Error(`${key}: anchor must record at least one of dsh/cordis/commit`)
|
|
710
|
+
}
|
|
649
711
|
if (entry.checks !== undefined) {
|
|
650
712
|
if (!Array.isArray(entry.checks)) throw new Error(`${key}: checks must be an array`)
|
|
651
713
|
const seen = new Set()
|
|
@@ -757,9 +819,16 @@ function main() {
|
|
|
757
819
|
if (!generatedAt) throw new Error('no --prev and no --levels generatedAt')
|
|
758
820
|
|
|
759
821
|
const checkerPkg = readPackageMeta(ROOT)
|
|
760
|
-
|
|
822
|
+
// A pure --prev refresh only recomputes lifecycle; it must not overwrite the
|
|
823
|
+
// checker metadata that records which build produced the checks. Explicit
|
|
824
|
+
// --checker-version/--checker-sha still win, and --levels rebuilds use the
|
|
825
|
+
// current package version because they add freshly produced checks.
|
|
826
|
+
const prevChecker = prev && !options.levels && prev.checker && typeof prev.checker === 'object' ? prev.checker : null
|
|
827
|
+
const checkerVersion = options.checkerVersion
|
|
828
|
+
?? (typeof prevChecker?.version === 'string' && prevChecker.version !== '' ? prevChecker.version : checkerPkg.version)
|
|
761
829
|
if (typeof checkerVersion !== 'string' || checkerVersion === '') throw new Error('cannot determine checker version')
|
|
762
|
-
const checkerSha = options.checkerSha
|
|
830
|
+
const checkerSha = options.checkerSha
|
|
831
|
+
?? (prevChecker && Object.hasOwn(prevChecker, 'sha') ? prevChecker.sha : gitHead())
|
|
763
832
|
if (checkerSha !== null && !HEX40.test(checkerSha)) throw new Error('--checker-sha must be 40 hex chars')
|
|
764
833
|
try {
|
|
765
834
|
const parsed = new URL(options.indexUrl)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -9,6 +9,8 @@ import fs from 'node:fs'
|
|
|
9
9
|
import path from 'node:path'
|
|
10
10
|
import { spawnSync } from 'node:child_process'
|
|
11
11
|
import { fileURLToPath } from 'node:url'
|
|
12
|
+
import { DEFAULT_RUNTIME_VERSION } from '../src/manifest.mjs'
|
|
13
|
+
import { DEFAULT_CORDIS } from '../src/cli.mjs'
|
|
12
14
|
|
|
13
15
|
const HERE = path.dirname(fileURLToPath(import.meta.url))
|
|
14
16
|
const ROOT = path.resolve(HERE, '..', '..')
|
|
@@ -31,7 +33,9 @@ function main() {
|
|
|
31
33
|
}
|
|
32
34
|
const result = {
|
|
33
35
|
runner: `dsh-plugin-verify@0.1.0 (${process.platform}/${process.arch}, node ${process.version})`,
|
|
34
|
-
|
|
36
|
+
// The known answers are only comparable between runs that share this
|
|
37
|
+
// anchor; rc.3 / cordis 4.1.0 is the current released baseline.
|
|
38
|
+
anchor: { dsh: DEFAULT_RUNTIME_VERSION, cordis: DEFAULT_CORDIS },
|
|
35
39
|
results: {
|
|
36
40
|
good: { status: run(path.join(ROOT, '40-checker/fixtures/good')), artifact: 'fixtures/good' },
|
|
37
41
|
'bad-manifest': { status: run(path.join(ROOT, '40-checker/fixtures/bad-manifest')), artifact: 'fixtures/bad-manifest' },
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
sha256File, sha256Value, treeSha256, validateFlowEvidence,
|
|
41
41
|
} from '../src/flow-evidence.mjs'
|
|
42
42
|
import { sanitizedEnv } from '../src/sandbox-env.mjs'
|
|
43
|
+
import { npmCommand } from '../src/npm-command.mjs'
|
|
43
44
|
import {
|
|
44
45
|
assertNoCredentialEnv, buildSandboxPlan, runInProcessTree, sandboxArgv,
|
|
45
46
|
} from '../src/sandbox-run.mjs'
|
|
@@ -51,15 +52,15 @@ const JOURNEY_RUNTIME = path.join(HERE, 'journey-runtime.mjs')
|
|
|
51
52
|
const GIT = process.platform === 'win32' ? 'git.exe' : 'git'
|
|
52
53
|
|
|
53
54
|
/**
|
|
54
|
-
* npm's Windows launcher is `npm.cmd`. Since Node 18.20/20.12 a
|
|
55
|
+
* npm's Windows launcher is `npm.cmd`. Since Node 18.20/20.12 a bare
|
|
55
56
|
* spawnSync('npm.cmd', ...) without a shell fails with EINVAL (the
|
|
56
|
-
* CVE-2024-27980 mitigation).
|
|
57
|
-
*
|
|
58
|
-
* is testable without
|
|
57
|
+
* CVE-2024-27980 mitigation). `npm-command.mjs` routes Windows through
|
|
58
|
+
* `cmd.exe /d /s /c`, which also avoids the shell:true DEP0190 warning; POSIX
|
|
59
|
+
* keeps a direct spawn. Exported so the platform choice is testable without
|
|
60
|
+
* running npm.
|
|
59
61
|
*/
|
|
60
62
|
export function npmPackInvocation(platform = process.platform, args = ['pack', '--ignore-scripts', '--json']) {
|
|
61
|
-
|
|
62
|
-
return { command: 'npm', args, shell: false }
|
|
63
|
+
return npmCommand(platform, args)
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
const STATIC_CHECK_IDS = {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|