dsh-standards 1.6.8 → 1.6.10
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 +5 -5
- package/40-checker/scripts/build-offline-kit.mjs +4 -1
- package/40-checker/scripts/build-sidecar.mjs +9 -2
- package/40-checker/scripts/flow-collect.mjs +7 -6
- package/40-checker/src/declarations.mjs +46 -4
- package/40-checker/src/flow-evidence.mjs +4 -3
- package/40-checker/src/npm-command.mjs +22 -0
- package/CHANGELOG.md +26 -1
- package/README.en.md +6 -0
- package/README.md +6 -0
- package/package.json +1 -1
- package/spec/dsc-clauses.json +1 -1
- package/spec/remediation.json +3 -3
|
@@ -662,7 +662,7 @@ export function apply(ctx: Context) {
|
|
|
662
662
|
| C-11.2 | **字段存在时**,高信号触发必须申报(映射见下表) | 字段存在且漏报 → FAIL;字段缺失 → 不评估,C-11 整体 WARN(过渡期) |
|
|
663
663
|
| C-11.3 | bundle patch 不得启用 `@deepseek-ai/dsh-plugin-manager/tools` | 启用 → FAIL |
|
|
664
664
|
| C-11.4 | 源码/配置中 `danger-full-access` 的 AST 字符串字面量;注释、等值比较、文档字符串不算(见下) | 真实授权/命令上下文或未知上下文 → WARN |
|
|
665
|
-
| C-11.5 |
|
|
665
|
+
| C-11.5 | 声明了但静态未观测到对应触发 | WARN(**不等于未使用/过度声明**:`node:fs`、动态调用、扫描截断不在触发面内;无源码或无观测面记 NA) |
|
|
666
666
|
|
|
667
667
|
**C-11.2 触发映射**:
|
|
668
668
|
|
|
@@ -686,7 +686,7 @@ export function apply(ctx: Context) {
|
|
|
686
686
|
| 值 | 条件 |
|
|
687
687
|
|---|---|
|
|
688
688
|
| PASS | C-11.1 字段存在/合法;C-11.2 无漏报;C-11.3 未启用;C-11.4 无命中 |
|
|
689
|
-
| WARN | 字段缺失(过渡期,C-11.2 不评估);C-11.4 命中;C-11.5
|
|
689
|
+
| WARN | 字段缺失(过渡期,C-11.2 不评估);C-11.4 命中;C-11.5 静态未观测(不等于过度声明);触发信号不确定(动态调用) |
|
|
690
690
|
| ERROR | AST 解析失败导致 C-11.4 not-run(coverage=not-run,不冒充 PASS) |
|
|
691
691
|
| FAIL | 非法 ID;字段存在但 C-11.2 漏报;C-11.3 启用 |
|
|
692
692
|
| NA | `dsh.kind` 非 plugin/bundle |
|
|
@@ -716,7 +716,7 @@ export function apply(ctx: Context) {
|
|
|
716
716
|
}
|
|
717
717
|
```
|
|
718
718
|
|
|
719
|
-
**建议分级**:DS-C 强制(C-11.1~C-11.3);C-11.4/C-11.5 为 WARN。
|
|
719
|
+
**建议分级**:DS-C 强制(C-11.1~C-11.3);C-11.4/C-11.5 为 WARN;C-11.5 在无源码或该能力无静态观测面时记 NA(not-run),不记 WARN。
|
|
720
720
|
|
|
721
721
|
**边界说明**:`dsh.capabilities` **不是权限门控**。宿主不读它,也没有运行时沙箱;它只是"装载期声明 + UI 披露"。一个插件完全可以声明 `[]` 然后裸 `import node:fs`,C-11 抓不到。这是 D5 的已知边界,必须在徽章文案里写明"非安全审计"。
|
|
722
722
|
|
|
@@ -1360,8 +1360,8 @@ E 路的 MVP 13 项(L0-1/2/3 + L1-1/3/4/5 + L2-1/2/4 + L3-1/3/5)只覆盖 C-
|
|
|
1360
1360
|
|
|
1361
1361
|
| ID | 触发信号(静态可判) | 说明 |
|
|
1362
1362
|
|---|---|---|
|
|
1363
|
-
| `fs:read` | `ctx.fs`
|
|
1364
|
-
| `fs:write` | `ctx.fs`
|
|
1363
|
+
| `fs:read` | `ctx.fs` 读方法(`readText`/`streamText`/`readBytes`/`readByteRange`/`listDir`/`stat`/`lstat`);直接 `node:fs` 读调用仅作 C-11.5 观测证据 | 读文件(含绕过 `ctx.fs` 的直接 `node:fs`) |
|
|
1364
|
+
| `fs:write` | `ctx.fs` 写方法(`writeText`/`editText`/`patchText`/`deleteFile`/`moveFile`);直接 `node:fs` 写调用仅作 C-11.5 观测证据 | 写文件(含绕过 `ctx.fs` 的直接 `node:fs`) |
|
|
1365
1365
|
| `shell` | `ctx.shell`/`ctx.bash` | 执行 shell |
|
|
1366
1366
|
| `subprocess` | `ctx.subprocess` | 子进程/PTY |
|
|
1367
1367
|
| `network:egress` | `ctx.web`/裸 `fetch` | 出站网络 |
|
|
@@ -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
|
})
|
|
@@ -757,9 +757,16 @@ function main() {
|
|
|
757
757
|
if (!generatedAt) throw new Error('no --prev and no --levels generatedAt')
|
|
758
758
|
|
|
759
759
|
const checkerPkg = readPackageMeta(ROOT)
|
|
760
|
-
|
|
760
|
+
// A pure --prev refresh only recomputes lifecycle; it must not overwrite the
|
|
761
|
+
// checker metadata that records which build produced the checks. Explicit
|
|
762
|
+
// --checker-version/--checker-sha still win, and --levels rebuilds use the
|
|
763
|
+
// current package version because they add freshly produced checks.
|
|
764
|
+
const prevChecker = prev && !options.levels && prev.checker && typeof prev.checker === 'object' ? prev.checker : null
|
|
765
|
+
const checkerVersion = options.checkerVersion
|
|
766
|
+
?? (typeof prevChecker?.version === 'string' && prevChecker.version !== '' ? prevChecker.version : checkerPkg.version)
|
|
761
767
|
if (typeof checkerVersion !== 'string' || checkerVersion === '') throw new Error('cannot determine checker version')
|
|
762
|
-
const checkerSha = options.checkerSha
|
|
768
|
+
const checkerSha = options.checkerSha
|
|
769
|
+
?? (prevChecker && Object.hasOwn(prevChecker, 'sha') ? prevChecker.sha : gitHead())
|
|
763
770
|
if (checkerSha !== null && !HEX40.test(checkerSha)) throw new Error('--checker-sha must be 40 hex chars')
|
|
764
771
|
try {
|
|
765
772
|
const parsed = new URL(options.indexUrl)
|
|
@@ -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 = {
|
|
@@ -35,6 +35,37 @@ const TRIGGERS = [
|
|
|
35
35
|
{ cap: 'network:egress', pattern: /ctx\.web\b|\bfetch\s*\(/g },
|
|
36
36
|
]
|
|
37
37
|
|
|
38
|
+
// C-11.5 observation evidence (NOT C-11.2 triggers). The coarse `ctx.fs` trigger
|
|
39
|
+
// cannot see direct `node:fs` use, and it cannot tell reads from writes: a plugin
|
|
40
|
+
// that declares fs:read/fs:write and reads/writes through node:fs was told its
|
|
41
|
+
// declaration was "over-declared" (#5). These patterns only suppress that false
|
|
42
|
+
// positive; they never produce a new FAIL.
|
|
43
|
+
const FS_CTX_READ = /ctx\.fs\.(?:readText|streamText|readBytes|readByteRange|listDir|stat|lstat)\s*\(/g
|
|
44
|
+
const FS_CTX_WRITE = /ctx\.fs\.(?:writeText|editText|patchText|deleteFile|moveFile)\s*\(/g
|
|
45
|
+
const NODE_FS_IMPORT = /(?:from\s*['"](?:node:)?fs(?:\/promises)?['"]|require\(\s*['"](?:node:)?fs(?:\/promises)?['"])/g
|
|
46
|
+
const NODE_FS_READ = /\b(?:readFileSync|readFile|createReadStream|readdirSync|readdir|statSync|stat|lstatSync|lstat|existsSync|accessSync|access|readlinkSync|readlink|realpathSync|realpath)\s*\(/g
|
|
47
|
+
const NODE_FS_WRITE = /\b(?:writeFileSync|writeFile|appendFileSync|appendFile|createWriteStream|mkdirSync|mkdir|rmSync|rm|rmdirSync|rmdir|unlinkSync|unlink|renameSync|rename|copyFileSync|copyFile|chmodSync|chmod|symlinkSync|symlink|truncateSync|truncate|writeSync)\s*\(/g
|
|
48
|
+
|
|
49
|
+
// Capabilities with no static observation surface in this checker version. C-11.5
|
|
50
|
+
// is reported as not-run for them instead of a permanent, misleading WARN.
|
|
51
|
+
const NO_OBSERVATION_SURFACE = new Set(['credentials:provider'])
|
|
52
|
+
|
|
53
|
+
/** Per-capability observation evidence for C-11.5 (never used by C-11.2). */
|
|
54
|
+
function observationEvidence(sources) {
|
|
55
|
+
const out = new Map()
|
|
56
|
+
const add = (cap, hits) => {
|
|
57
|
+
if (hits.length > 0) out.set(cap, [...(out.get(cap) ?? []), ...hits])
|
|
58
|
+
}
|
|
59
|
+
add('fs:read', regexHits(sources, FS_CTX_READ))
|
|
60
|
+
add('fs:write', regexHits(sources, FS_CTX_WRITE))
|
|
61
|
+
for (const source of sources) {
|
|
62
|
+
if (regexHits([source], NODE_FS_IMPORT).length === 0) continue
|
|
63
|
+
add('fs:read', regexHits([source], NODE_FS_READ))
|
|
64
|
+
add('fs:write', regexHits([source], NODE_FS_WRITE))
|
|
65
|
+
}
|
|
66
|
+
return out
|
|
67
|
+
}
|
|
68
|
+
|
|
38
69
|
function capabilityList(manifest) {
|
|
39
70
|
const value = manifest?.dsh?.capabilities
|
|
40
71
|
if (value === undefined) return { defined: false, list: [], error: null }
|
|
@@ -615,7 +646,6 @@ export function checkCapabilities(manifest, sources, patch) {
|
|
|
615
646
|
for (const id of caps.list) {
|
|
616
647
|
if (!CAPABILITIES.has(id)) details.push(detail('C-11.1', 'FAIL', `unknown capability id: ${id}`, ['package.json#dsh.capabilities']))
|
|
617
648
|
}
|
|
618
|
-
if (caps.list.length === 0) details.push(detail('C-11.1', 'WARN', 'dsh.capabilities is empty', ['package.json#dsh.capabilities']))
|
|
619
649
|
}
|
|
620
650
|
|
|
621
651
|
const triggered = new Map()
|
|
@@ -623,6 +653,7 @@ export function checkCapabilities(manifest, sources, patch) {
|
|
|
623
653
|
const hits = regexHits(sources, trigger.pattern)
|
|
624
654
|
if (hits.length > 0) triggered.set(trigger.cap, hits)
|
|
625
655
|
}
|
|
656
|
+
const observedEvidence = observationEvidence(sources)
|
|
626
657
|
if (!caps.defined) {
|
|
627
658
|
for (const [cap, hits] of triggered) {
|
|
628
659
|
details.push(detail('C-11.2', 'WARN', `trigger for ${cap} observed but dsh.capabilities is absent`, hitEvidence(hits)))
|
|
@@ -638,9 +669,20 @@ export function checkCapabilities(manifest, sources, patch) {
|
|
|
638
669
|
details.push(detail('C-11.2', 'FAIL', `static trigger ${cap} is not declared in dsh.capabilities`, hitEvidence(hits)))
|
|
639
670
|
}
|
|
640
671
|
}
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
672
|
+
if (sources.length === 0) {
|
|
673
|
+
details.push(detail('C-11.5', 'NA', 'not-run: no source files were scanned, so no capability can be observed', []))
|
|
674
|
+
} else {
|
|
675
|
+
for (const cap of caps.list) {
|
|
676
|
+
if (NO_OBSERVATION_SURFACE.has(cap)) {
|
|
677
|
+
details.push(detail('C-11.5', 'NA', `not-run: no static observation surface for ${cap} in this checker version`, []))
|
|
678
|
+
continue
|
|
679
|
+
}
|
|
680
|
+
// `fs:write` used to be "observed" by any `ctx.fs` use; that let a
|
|
681
|
+
// read-only plugin declare a write capability and pass. Read and write
|
|
682
|
+
// are now observed independently (ctx.fs method + direct node:fs).
|
|
683
|
+
const observed = triggered.has(cap) || observedEvidence.has(cap)
|
|
684
|
+
if (!observed) details.push(detail('C-11.5', 'WARN', `declared capability ${cap} was not observed statically (this is not proof it is unused: node:fs, dynamic calls and scan truncation are outside the trigger surface)`, ['package.json#dsh.capabilities']))
|
|
685
|
+
}
|
|
644
686
|
}
|
|
645
687
|
}
|
|
646
688
|
|
|
@@ -28,6 +28,7 @@ import fs from 'node:fs'
|
|
|
28
28
|
import os from 'node:os'
|
|
29
29
|
import path from 'node:path'
|
|
30
30
|
import { spawnSync } from 'node:child_process'
|
|
31
|
+
import { npmPackInvocation } from './npm-command.mjs'
|
|
31
32
|
import { signEvidence } from './signature.mjs'
|
|
32
33
|
|
|
33
34
|
// Signing helpers live in signature.mjs; re-exported here so callers that
|
|
@@ -167,8 +168,6 @@ export function treeSha256(dir, { exclude = [] } = {}) {
|
|
|
167
168
|
return { hash: sha256Value(rows.join('\n')), files: rows.length, bytes }
|
|
168
169
|
}
|
|
169
170
|
|
|
170
|
-
const NPM = process.platform === 'win32' ? 'npm.cmd' : 'npm'
|
|
171
|
-
|
|
172
171
|
function subjectFields(subject) {
|
|
173
172
|
if (!isPlainObject(subject)) return null
|
|
174
173
|
return {
|
|
@@ -193,7 +192,9 @@ export function recomputeSubject(dir, { exclude = [], timeoutMs = 120_000 } = {}
|
|
|
193
192
|
const tree = treeSha256(root, { exclude })
|
|
194
193
|
const destination = fs.mkdtempSync(path.join(os.tmpdir(), 'dsh-subject-'))
|
|
195
194
|
try {
|
|
196
|
-
const
|
|
195
|
+
const invocation = npmPackInvocation(process.platform, ['pack', '--ignore-scripts', '--json', '--pack-destination', destination])
|
|
196
|
+
const run = spawnSync(invocation.command, invocation.args, {
|
|
197
|
+
shell: invocation.shell,
|
|
197
198
|
cwd: root, encoding: 'utf8', timeout: timeoutMs, maxBuffer: 16 * 1024 * 1024,
|
|
198
199
|
})
|
|
199
200
|
if (run.error) throw new Error(`npm pack failed to start: ${run.error.message}`)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* npm's Windows launcher is `npm.cmd`. Since Node 18.20/20.12 a bare
|
|
3
|
+
* `spawnSync('npm.cmd', ...)` without a shell fails with EINVAL (the
|
|
4
|
+
* CVE-2024-27980 mitigation). On Windows route the call through
|
|
5
|
+
* `cmd.exe /d /s /c npm.cmd ...`; keeping the arguments separate lets Node's
|
|
6
|
+
* own Windows quoting handle paths with spaces, and unlike `shell: true` it
|
|
7
|
+
* does not emit the DEP0190 deprecation warning. POSIX keeps a direct spawn.
|
|
8
|
+
*/
|
|
9
|
+
export function npmCommand(platform = process.platform, args = []) {
|
|
10
|
+
if (platform === 'win32') {
|
|
11
|
+
return {
|
|
12
|
+
command: process.env.ComSpec || 'cmd.exe',
|
|
13
|
+
args: ['/d', '/s', '/c', 'npm.cmd', ...args],
|
|
14
|
+
shell: false,
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return { command: 'npm', args, shell: false }
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function npmPackInvocation(platform = process.platform, args = ['pack', '--ignore-scripts', '--json']) {
|
|
21
|
+
return npmCommand(platform, args)
|
|
22
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
|
+
## 1.6.10 — 2026-11-13
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
- **C-11.5 no longer calls a static blind spot "over-declaration".** The clause fired for plugins that declare `fs:read`/`fs:write` and use `node:fs` directly, because the only trigger was `ctx.fs`; the remediation even told authors to delete a declaration they were really using. Direct `node:fs` reads/writes are now observation evidence (only for C-11.5 — they never produce a new C-11.2 FAIL), and `ctx.fs` reads/writes are observed separately instead of `fs:write` borrowing `fs:read`'s hit.
|
|
6
|
+
- **C-11.5 records `NA` instead of `WARN` when nothing can be observed**: no source files were scanned, or the capability has no static observation surface in this checker version (`credentials:provider`). Wording across `31-DS-C条款.md`, `60-权限与标注规范.md`, `spec/dsc-clauses.json` and `spec/remediation.json` now says "静态未观测(不等于未使用)" and no longer advises deleting a real declaration.
|
|
7
|
+
|
|
8
|
+
## 1.6.9 — 2026-11-08
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- C-11.1 no longer emits a WARN when `dsh.capabilities` is a declared empty array. The clause only warns on a missing field; an empty array is the explicit "uses none" declaration, and C-11.2 still fails when a static trigger is observed but not declared. A freshly generated `dsh-plugin-start` skeleton now passes static ENTRY with hygiene 0.
|
|
13
|
+
|
|
14
|
+
### Verified
|
|
15
|
+
|
|
16
|
+
- `npm test`: 313 passed / 1 skipped / 0 failed.
|
|
17
|
+
- Generated `dsh-plugin-start` skeleton: local check exits 0, `blocking 0`, `hygiene 0`, no advice.
|
|
18
|
+
|
|
1
19
|
## 1.6.8 — 2026-11-07
|
|
2
20
|
|
|
3
21
|
### Added
|
|
4
22
|
|
|
5
23
|
- `conformance.schema.json`:`subject.source`(`package`/`registry`/`unknown`,可选加性)与 `checks[].howToEnable` 显式放行;`subject` 仍 `additionalProperties:false`,其余未知键照旧被拒。registry 报告(`dsh.plugin.json`,1.6.7 起输出 `source=registry`)现在可整份通过 schema。
|
|
6
|
-
- 离线包 `publish/dsh-standards-offline-1.6.8.tgz`:
|
|
24
|
+
- 离线包 `publish/dsh-standards-offline-1.6.8.tgz`:1,001,036 B,64 文件,sha256 `24117149e8dbc5ca44bc90e013461a6e1d385dd691c47d36e18728aa42a82fcb`;内层本地打包 911,496 B,sha256 `aa49e7d209eea37251d6a53851651eeb90692c2bea1e570f5c413c666c419e43`(npm 发布 tarball 911,485 B,sha256 `478716…`,差异仅 CHANGELOG)。
|
|
7
25
|
|
|
8
26
|
### Changed
|
|
9
27
|
|
|
@@ -259,6 +277,13 @@
|
|
|
259
277
|
|
|
260
278
|
# Changelog
|
|
261
279
|
|
|
280
|
+
## 1.6.10 — 2026-11-13
|
|
281
|
+
|
|
282
|
+
### Fixed
|
|
283
|
+
|
|
284
|
+
- **C-11.5 no longer calls a static blind spot "over-declaration".** The clause fired for plugins that declare `fs:read`/`fs:write` and use `node:fs` directly, because the only trigger was `ctx.fs`; the remediation even told authors to delete a declaration they were really using. Direct `node:fs` reads/writes are now observation evidence (only for C-11.5 — they never produce a new C-11.2 FAIL), and `ctx.fs` reads/writes are observed separately instead of `fs:write` borrowing `fs:read`'s hit.
|
|
285
|
+
- **C-11.5 records `NA` instead of `WARN` when nothing can be observed**: no source files were scanned, or the capability has no static observation surface in this checker version (`credentials:provider`). Wording across `31-DS-C条款.md`, `60-权限与标注规范.md`, `spec/dsc-clauses.json` and `spec/remediation.json` now says "静态未观测(不等于未使用)" and no longer advises deleting a real declaration.
|
|
286
|
+
|
|
262
287
|
## 2026-11-04 — 0.2.2-alpha.3 baseline in the three-level docs
|
|
263
288
|
|
|
264
289
|
- Add the 0.2.2-alpha.3 baseline table and six PR-review evidence gates to `35`.
|
package/README.en.md
CHANGED
|
@@ -48,6 +48,12 @@ The old npm reservation `dsh-standards@0.0.3` only held the name; this 1.x line
|
|
|
48
48
|
|
|
49
49
|
Fixed anchor, recorded in `spec/levels.json` and in every report: `repo=deepseek-ai/deepseek-harness`, `commit=ce7073d51254`, `dsh=0.2.2-alpha.2`, `cordis=4.0.6-alpha.1`. Pass a different runtime version explicitly and the report records which ruler you measured with.
|
|
50
50
|
|
|
51
|
+
### Upstream and usage (facts, 2026-11)
|
|
52
|
+
|
|
53
|
+
- **dsh-plugin-hub** — a version-aware npm metadata check is on main ([`4f3a560`](https://github.com/dshplugin/dsh-plugin-hub/commit/4f3a560), 2026-11-09). Scope: install-time npm metadata only (package/version existence and the `repository` back-link); it does not run ENTRY and is not an endorsement of any plugin.
|
|
54
|
+
- **Usage** (npm registry, 2026-11): `dsh-plugin-guide` ~12.6k/month, `dsh-standards` ~4.4k/month, `dsh-plugin-start` ~1.65k/month. Downloads are not unique users and are not a ranking, certification, or security claim.
|
|
55
|
+
- **Toolchain**: `dsh-plugin-guide` (guide / skill), `dsh-plugin-start` (scaffolder with the check and an advisory CI snippet in its output), `dsh-check-action` (read-only ENTRY Action), `dsh-plugin-spec` (clause text), `dsh-primer` (older development skill / CLI).
|
|
56
|
+
|
|
51
57
|
### Current hard numbers
|
|
52
58
|
|
|
53
59
|
- 18 packages, entry static: **18/18 recognized, 0 clean**;
|
package/README.md
CHANGED
|
@@ -42,6 +42,12 @@ DSH 插件的采用深度分三层,每层一个问题、一套证据状态,*
|
|
|
42
42
|
| 2 | **DSH-FLOW 顺畅规范** | 用户能否安装、配置、使用、恢复、升级、卸载而不出意外? | draft;fixture 上 J1/J2/J4/J6 **12 PASS**;J3/J7 fixture runtime;J5/J8 static preflight;10 个真实包 **78 PASS / 4 FAIL / 2 blocked / 66 not-run** |
|
|
43
43
|
| 3 | **DSH-BOOST 加速实践** | 插件是否用 Cordis 原语(effect、inject、volatile、事件、seam、job、有界并行)让开发和使用可测量地更省? | draft;LEV-1–8 **8/8 measured**(loader / context / provider-capture / synthetic timer;非生产基线) |
|
|
44
44
|
|
|
45
|
+
### 上游与使用(事实,2026-11)
|
|
46
|
+
|
|
47
|
+
- **dsh-plugin-hub** —— 版本感知的 npm 元数据校验已合入 main([`4f3a560`](https://github.com/dshplugin/dsh-plugin-hub/commit/4f3a560),2026-11-09)。范围仅安装侧的 npm 元数据(包/版本存在性、`repository` 回链);不运行 ENTRY,也不构成对任何插件的背书。
|
|
48
|
+
- **使用量**(npm registry,2026-11):`dsh-plugin-guide` ≈12.6k/月、`dsh-standards` ≈4.4k/月、`dsh-plugin-start` ≈1.65k/月。下载量不是独立用户数,也不构成排名、认证或安全结论。
|
|
49
|
+
- **工具链**:`dsh-plugin-guide`(指南 / skill)、`dsh-plugin-start`(生成器,产物自带检查与 advisory CI)、`dsh-check-action`(只读 ENTRY 的 Action)、`dsh-plugin-spec`(条款原文)、`dsh-primer`(旧版开发 skill / CLI)。
|
|
50
|
+
|
|
45
51
|
仓里就三样东西:`40-checker/`(DS-C 一致性检查器与全部证据脚本)、`bin/`(两个公开入口 `dsh-standards` 与 `dsh-levels`),以及 `spec/` 与 `31`–`35` 号规范正文。工具只读目标包,不改被检对象;结论只认证据,`not-run`、`NA`、`static` 都不会被写成 PASS。
|
|
46
52
|
|
|
47
53
|
npm 上的旧占位 `dsh-standards@0.0.3` 只是名字预留,这条 1.x 线取代了它(当前 `1.6.x`);两个 bin 分别叫 `dsh-standards` 与 `dsh-levels`。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-standards",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.10",
|
|
4
4
|
"description": "DSH plugin standards and conformance checks: ENTRY/FLOW checks plus BOOST guidance. Non-official; no certification or ranking.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "40-checker/src/index.mjs",
|
package/spec/dsc-clauses.json
CHANGED
package/spec/remediation.json
CHANGED
|
@@ -336,9 +336,9 @@
|
|
|
336
336
|
"severityHint": "warn"
|
|
337
337
|
},
|
|
338
338
|
"C-11.5": {
|
|
339
|
-
"title": "
|
|
340
|
-
"why": "
|
|
341
|
-
"fix": "
|
|
339
|
+
"title": "声明了能力但静态未观测到",
|
|
340
|
+
"why": "静态触发面看不到该能力,可能是确实没用,也可能是通过 node:fs、动态调用或扫描截断走到了触发面之外。它不等于过度声明。",
|
|
341
|
+
"fix": "先确认实现是否经由 node:fs/动态路径使用该能力;确实不用再删,仍在用就在 README 说明「为什么声明了但静态看不到」。不要为了消掉这条 WARN 而删掉真实使用的声明。",
|
|
342
342
|
"docs": "docs/entry.md#capability-triggers",
|
|
343
343
|
"severityHint": "warn"
|
|
344
344
|
},
|