dsh-statcheck 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/LICENSE +0 -0
  3. package/README-zh.md +23 -3
  4. package/README.md +23 -3
  5. package/SECURITY.md +0 -0
  6. package/THIRD_PARTY_NOTICES.md +0 -0
  7. package/cordis.patch.yml +0 -0
  8. package/docs/assets/dsh-statcheck-demo.gif +0 -0
  9. package/docs/assets/dsh-statcheck-flow-v5-dark.svg +73 -0
  10. package/docs/assets/dsh-statcheck-flow-v5-light.svg +73 -0
  11. package/docs/assets/dsh-statcheck-hero-en-dark.webp +0 -0
  12. package/docs/assets/dsh-statcheck-hero-en-light.webp +0 -0
  13. package/docs/assets/dsh-statcheck-hero-zh-dark.webp +0 -0
  14. package/docs/assets/dsh-statcheck-hero-zh-light.webp +0 -0
  15. package/lib/check.d.ts +0 -0
  16. package/lib/check.d.ts.map +0 -0
  17. package/lib/check.js +0 -0
  18. package/lib/check.js.map +0 -0
  19. package/lib/config.d.ts +0 -0
  20. package/lib/config.d.ts.map +0 -0
  21. package/lib/config.js +0 -0
  22. package/lib/config.js.map +0 -0
  23. package/lib/index.d.ts +0 -0
  24. package/lib/index.d.ts.map +0 -0
  25. package/lib/index.js +0 -0
  26. package/lib/index.js.map +0 -0
  27. package/lib/math.d.ts +0 -0
  28. package/lib/math.d.ts.map +0 -0
  29. package/lib/math.js +0 -0
  30. package/lib/math.js.map +0 -0
  31. package/lib/report.d.ts +0 -0
  32. package/lib/report.d.ts.map +0 -0
  33. package/lib/report.js +0 -0
  34. package/lib/report.js.map +0 -0
  35. package/lib/runtime.d.ts +0 -0
  36. package/lib/runtime.d.ts.map +0 -0
  37. package/lib/runtime.js +0 -0
  38. package/lib/runtime.js.map +0 -0
  39. package/lib/tools/shared.d.ts +0 -0
  40. package/lib/tools/shared.d.ts.map +0 -0
  41. package/lib/tools/shared.js +0 -0
  42. package/lib/tools/shared.js.map +0 -0
  43. package/lib/tools/stat-check.d.ts +0 -0
  44. package/lib/tools/stat-check.d.ts.map +0 -0
  45. package/lib/tools/stat-check.js +0 -0
  46. package/lib/tools/stat-check.js.map +0 -0
  47. package/lib/tools/stat-recompute.d.ts +0 -0
  48. package/lib/tools/stat-recompute.d.ts.map +0 -0
  49. package/lib/tools/stat-recompute.js +0 -0
  50. package/lib/tools/stat-recompute.js.map +0 -0
  51. package/lib/tools/stat-report.d.ts +0 -0
  52. package/lib/tools/stat-report.d.ts.map +0 -0
  53. package/lib/tools/stat-report.js +0 -0
  54. package/lib/tools/stat-report.js.map +0 -0
  55. package/lib/version.d.ts +1 -1
  56. package/lib/version.d.ts.map +0 -0
  57. package/lib/version.js +1 -1
  58. package/lib/version.js.map +0 -0
  59. package/package.json +5 -4
  60. package/src/check.ts +0 -0
  61. package/src/config.ts +0 -0
  62. package/src/index.ts +0 -0
  63. package/src/math.ts +0 -0
  64. package/src/report.ts +0 -0
  65. package/src/runtime.ts +0 -0
  66. package/src/tools/shared.ts +0 -0
  67. package/src/tools/stat-check.ts +0 -0
  68. package/src/tools/stat-recompute.ts +0 -0
  69. package/src/tools/stat-report.ts +0 -0
  70. package/src/version.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [Unreleased]
4
+
5
+ ## [0.1.3] - 2026-11-22
6
+
7
+ - Compatibility: declare DeepSeek Harness 0.2.3-alpha.1 support (>=0.2.3-0 <0.3.0-0 in engines.dsh and every @deepseek-ai/dsh-* peer range) and refresh README verification stamps.
8
+
3
9
  All notable changes to this project are documented here. The format follows
4
10
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
5
11
  adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
package/LICENSE CHANGED
File without changes
package/README-zh.md CHANGED
@@ -1,13 +1,22 @@
1
+ <div align="center">
2
+
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/dsh-statcheck-hero-zh-dark.webp">
5
+ <img src="docs/assets/dsh-statcheck-hero-zh-light.webp" width="100%" alt="dsh-statcheck 配图:稿件里报告 t(28) = 2.048,p = .010,重算 p 为 .0500,因此判为 inconsistent;同一段里 F(2, 27) = 3.354,p = .050 判为 consistent;右侧是精确字符区间与 REP v1 证据编号">
6
+ </picture>
7
+
1
8
  # dsh-statcheck
2
9
 
3
10
  **重算稿件报告的统计数据 —— 并把对不上的那些标出来。**
4
11
 
5
12
  *这是算术,不是指控:每条 finding 都会给出报告的统计量、它实际蕴含的 p 值,以及它所依据的精确字符位置。*
6
13
 
14
+ [English](README.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
15
+
7
16
  [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
8
17
  [![Node](https://img.shields.io/badge/node-%5E22.19%20%7C%7C%20%3E%3D24.9-brightgreen.svg)]()
9
18
 
10
- [English](README.md) · 简体中文
19
+ </div>
11
20
 
12
21
  ---
13
22
 
@@ -19,6 +28,13 @@
19
28
  - 校验 CI 与显著性是否一致(p 显著,但 CI 包含 0,就是矛盾)。
20
29
  - 输出 Markdown 与 **SARIF 2.1.0**,并把被分析的文本注册为一条 REP v1 证据,其检查项就是这些 findings。
21
30
 
31
+ <picture>
32
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/dsh-statcheck-flow-v5-dark.svg">
33
+ <img src="docs/assets/dsh-statcheck-flow-v5-light.svg" width="100%" alt="dsh-statcheck 结构图:APA 风格的报告被解析为统计量与报告 p 值,由统计量重算 p,再逐条判定 consistent / inconsistent 并给出精确字符区间;findings 汇总为 summary、一条 REP v1 证据,以及 Markdown/SARIF 输出;图内标签就是真实的工具名、检查名与 issue code">
34
+ </picture>
35
+
36
+ *结构:解析 → 重算 → 判定;`findings[]` 与 `summary` 是两条输出,`stat_report` 把它们渲染成 Markdown 与 SARIF 2.1.0。图内只有工具名、检查名与 issue code,五语共用同一张结构图。*
37
+
22
38
  ## 它不做什么
23
39
 
24
40
  - **不重新分析数据。** 它无从判断报告的统计量是否适合该研究设计。
@@ -31,7 +47,7 @@
31
47
 
32
48
  | | |
33
49
  |---|---|
34
- | DeepSeek Harness | **`dsh-v0.2.1-rc.5`**(2026-11-08 实测);peer 区间 `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0` |
50
+ | DeepSeek Harness | **`dsh-v0.2.3-alpha.1`**(2026-11-22 实测);peer 区间 `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0` |
35
51
  | Node | `^22.19.0 \|\| >=24.9.0`(实测 `24.22.1`),仅 ESM |
36
52
  | Peer | `@perrylink/dsh-research-core ^0.1.0`、`@deepseek-ai/cordis ^4.0.5-alpha.1`、`@deepseek-ai/dsh-tools`、`@deepseek-ai/schemastery ^3.18.5-alpha.1` |
37
53
  | 运行时依赖 | **零** |
@@ -81,6 +97,10 @@ t/r/z 为双尾,F/χ² 为上尾。`p` 使用与 `stat_check` 相同的舍入
81
97
 
82
98
  ## 评测
83
99
 
100
+ ![dsh-statcheck 基准评测:30 条冻结统计用例的真实运行 —— 不一致 precision / recall / F1 均为 1,干净样本误报率为 0,整案完全一致率为 1](docs/assets/dsh-statcheck-demo.gif)
101
+
102
+ *动图是基准适配器的真实 stdout:30 条冻结统计用例(`node bench/run-stats.mjs`,`BENCH_DIR` 指向冻结的 `dsh-research-bench` 检出,不联网;2026-11-21 复跑)。满分只描述这些构造好的临界值用例 —— 下面的范围警告依然适用。*
103
+
84
104
  ### 基准评测 —— `dsh-research-bench` stats v0.1.0(30 条用例)
85
105
 
86
106
  ```sh
@@ -102,7 +122,7 @@ pnpm run bench:stats
102
122
 
103
123
  ### 测试
104
124
 
105
- - **42 个测试,分布在 5 个文件**:对照已发表的临界值检验分布尾概率(t/F/χ²/r/z);解析(所有统计族、偏移、阈值、CI、多统计量、无法解析);判定(p 值、阈值、格式、CI、df、负的 F/χ² 定义域);运行时(证据 + 合法 REP 记录、不产生证据冲突的重复检查、findings 上限的截断、文件与媒体类型、persist=false、路径逃逸、大小上限);工具(schema、成功/失败、含重算 p 为 null 的 SARIF,以及由可选 text 提供的行列映射);包契约。
125
+ - **43 个测试,分布在 6 个文件**:对照已发表的临界值检验分布尾概率(t/F/χ²/r/z);解析(所有统计族、偏移、阈值、CI、多统计量、无法解析);判定(p 值、阈值、格式、CI、df、负的 F/χ² 定义域);运行时(证据 + 合法 REP 记录、不产生证据冲突的重复检查、findings 上限的截断、文件与媒体类型、persist=false、路径逃逸、大小上限);工具(schema、成功/失败、含重算 p 为 null 的 SARIF,以及由可选 text 提供的行列映射);包契约。
106
126
 
107
127
  ## 已知限制(v0.1)
108
128
 
package/README.md CHANGED
@@ -1,13 +1,22 @@
1
+ <div align="center">
2
+
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/dsh-statcheck-hero-en-dark.webp">
5
+ <img src="docs/assets/dsh-statcheck-hero-en-light.webp" width="100%" alt="dsh-statcheck: a manuscript sentence reporting t(28) = 2.048 at p = .010, where the recomputed p is .0500 so the finding is inconsistent; F(2, 27) = 3.354 at p = .050 is consistent; the exact character ranges and the REP v1 evidence id are shown on the right">
6
+ </picture>
7
+
1
8
  # dsh-statcheck
2
9
 
3
10
  **Recompute the statistics a manuscript reports — and flag the ones that do not add up.**
4
11
 
5
12
  *It is arithmetic, not accusation: each finding shows the reported statistic, the p value it actually implies, and the exact characters it came from.*
6
13
 
14
+ [简体中文](README-zh.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
15
+
7
16
  [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
8
17
  [![Node](https://img.shields.io/badge/node-%5E22.19%20%7C%7C%20%3E%3D24.9-brightgreen.svg)]()
9
18
 
10
- English · [简体中文](README-zh.md)
19
+ </div>
11
20
 
12
21
  ---
13
22
 
@@ -19,6 +28,13 @@ English · [简体中文](README-zh.md)
19
28
  - Checks the CI against significance (a significant p with a CI that includes 0 is a contradiction).
20
29
  - Emits Markdown and **SARIF 2.1.0**, and registers the analyzed text as a REP v1 evidence item whose checks are the findings.
21
30
 
31
+ <picture>
32
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/dsh-statcheck-flow-v5-dark.svg">
33
+ <img src="docs/assets/dsh-statcheck-flow-v5-light.svg" width="100%" alt="dsh-statcheck structure: an APA-style report is parsed into statistics and reported p values, the p value is recomputed from the statistic, each report is judged consistent or inconsistent with an exact character range, and the findings become a summary, a REP v1 evidence item and Markdown/SARIF output; the labels inside the diagram are the real tool, check and issue names">
34
+ </picture>
35
+
36
+ *Structure: parse → recompute → judge; `findings[]` and `summary` are the two outputs, and `stat_report` renders them as Markdown and SARIF 2.1.0. The token labels inside the diagram are the real tool, check and issue names, so the same picture serves all five languages.*
37
+
22
38
  ## What it does not do
23
39
 
24
40
  - **No data re-analysis.** It cannot know whether the reported statistic is appropriate for the design.
@@ -31,7 +47,7 @@ English · [简体中文](README-zh.md)
31
47
 
32
48
  | | |
33
49
  |---|---|
34
- | DeepSeek Harness | **`dsh-v0.2.1-rc.5`** (verified 2026-11-08); peer line `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0` |
50
+ | DeepSeek Harness | **`dsh-v0.2.3-alpha.1`** (verified 2026-11-22); peer line `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0` |
35
51
  | Node | `^22.19.0 \|\| >=24.9.0` (tested on `24.22.1`), ESM only |
36
52
  | Peers | `@perrylink/dsh-research-core ^0.1.0`, `@deepseek-ai/cordis ^4.0.5-alpha.1`, `@deepseek-ai/dsh-tools`, `@deepseek-ai/schemastery ^3.18.5-alpha.1` |
37
53
  | Runtime dependencies | **zero** |
@@ -81,6 +97,10 @@ The extra `0.001` absorbs the fact that the statistic itself is often reported r
81
97
 
82
98
  ## Evaluation
83
99
 
100
+ ![dsh-statcheck benchmark: a real run over 30 frozen statistics cases — inconsistent precision, recall and F1 are 1, the clean false-positive rate is 0, and exact accuracy is 1](docs/assets/dsh-statcheck-demo.gif)
101
+
102
+ *Animated: the benchmark adapter's real stdout over the 30 frozen statistics cases (`node bench/run-stats.mjs` with `BENCH_DIR` pointing at the frozen `dsh-research-bench` checkout, no network; re-run 2026-11-21). The perfect scores describe these constructed critical-value cases only — the scope warning below still applies.*
103
+
84
104
  ### Benchmark — `dsh-research-bench` stats v0.1.0 (30 cases)
85
105
 
86
106
  ```sh
@@ -102,7 +122,7 @@ Raw per-case predictions: [`bench/results-stats.json`](bench/results-stats.json)
102
122
 
103
123
  ### Tests
104
124
 
105
- - **42 tests across 5 files**: distribution tails against published critical values (t/F/χ²/r/z), parsing (all families, offsets, thresholds, CIs, multiple statistics, unparsed), judging (p-value, threshold, format, CI, df, negative F/χ² domains), runtime (evidence + valid REP record, re-check without an evidence conflict, findings-cap clamp, file/media type, persist=false, path escapes, size cap), tools (schemas, success/failure, SARIF incl. a null recomputed p and line/column mapping from optional text), package contract.
125
+ - **43 tests across 6 files**: distribution tails against published critical values (t/F/χ²/r/z), parsing (all families, offsets, thresholds, CIs, multiple statistics, unparsed), judging (p-value, threshold, format, CI, df, negative F/χ² domains), runtime (evidence + valid REP record, re-check without an evidence conflict, findings-cap clamp, file/media type, persist=false, path escapes, size cap), tools (schemas, success/failure, SARIF incl. a null recomputed p and line/column mapping from optional text), package contract.
106
126
 
107
127
  ## Known limitations (v0.1)
108
128
 
package/SECURITY.md CHANGED
File without changes
File without changes
package/cordis.patch.yml CHANGED
File without changes
@@ -0,0 +1,73 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1100" height="660" viewBox="0 0 1100 660" role="img" aria-label="dsh-statcheck structure diagram">
2
+ <defs>
3
+ <linearGradient id="bg" x1="0" y1="0" x2="0.3" y2="1"><stop offset="0" stop-color="#131a2a"/><stop offset="1" stop-color="#0c1016"/></linearGradient>
4
+ <filter id="soft" x="-30%" y="-30%" width="160%" height="170%"><feDropShadow dx="0" dy="7" stdDeviation="9" flood-color="#16122c" flood-opacity="0.45"/></filter>
5
+ <marker id="arr" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6.4" markerHeight="6.4" orient="auto-start-reverse"><path d="M0 0 L10 5 L0 10 z" fill="#8496f5"/></marker>
6
+ </defs>
7
+ <rect width="1100" height="660" fill="url(#bg)"/>
8
+ <text x="44" y="58" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="28" font-weight="700">dsh-statcheck</text>
9
+ <text x="44" y="88" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="15">APA report → statistic + reported p → recomputed p → finding → summary + REP evidence</text>
10
+ <rect x="923.328125" y="36" width="132.671875" height="26" rx="13.0" fill="#202839"/>
11
+ <text x="935.328125" y="53.08" fill="#8496f5" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="12" font-weight="700">5 statistic families</text>
12
+ <rect x="44" y="120" width="214" height="250" rx="18" fill="#1b2231" stroke="#2e374b" stroke-width="1.5" filter="url(#soft)"/>
13
+ <text x="62" y="146" fill="#737b8d" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="12" font-weight="700">01</text>
14
+ <text x="62" y="172" fill="#f0f3f9" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="16.5" font-weight="700">Parse</text>
15
+ <text x="62" y="196" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">APA inline reports</text>
16
+ <rect x="62" y="209" width="178" height="26" rx="8" fill="#202839"/>
17
+ <text x="72" y="227" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">t(28) = 2.048</text>
18
+ <rect x="62" y="241" width="178" height="26" rx="8" fill="#202839"/>
19
+ <text x="72" y="259" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">F(2, 27) = 3.354</text>
20
+ <rect x="62" y="273" width="178" height="26" rx="8" fill="#202839"/>
21
+ <text x="72" y="291" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">χ²(1) = 3.841</text>
22
+ <line x1="260" y1="245.0" x2="276" y2="245.0" stroke="#8496f5" stroke-width="1.8" marker-end="url(#arr)"/>
23
+ <rect x="278" y="120" width="214" height="250" rx="18" fill="#1b2231" stroke="#2e374b" stroke-width="1.5" filter="url(#soft)"/>
24
+ <text x="296" y="146" fill="#737b8d" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="12" font-weight="700">02</text>
25
+ <text x="296" y="172" fill="#f0f3f9" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="16.5" font-weight="700">Recompute</text>
26
+ <text x="296" y="196" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">statistic → exact p</text>
27
+ <rect x="296" y="209" width="178" height="26" rx="8" fill="#202839"/>
28
+ <text x="306" y="227" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">two-tailed t / r / z</text>
29
+ <rect x="296" y="241" width="178" height="26" rx="8" fill="#202839"/>
30
+ <text x="306" y="259" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">upper-tail F / χ²</text>
31
+ <rect x="296" y="273" width="178" height="26" rx="8" fill="#202839"/>
32
+ <text x="306" y="291" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">zero dependencies</text>
33
+ <line x1="494" y1="245.0" x2="510" y2="245.0" stroke="#8496f5" stroke-width="1.8" marker-end="url(#arr)"/>
34
+ <rect x="512" y="120" width="214" height="250" rx="18" fill="#1b2231" stroke="#2e374b" stroke-width="1.5" filter="url(#soft)"/>
35
+ <text x="530" y="146" fill="#737b8d" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="12" font-weight="700">03</text>
36
+ <text x="530" y="172" fill="#f0f3f9" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="16.5" font-weight="700">Judge</text>
37
+ <text x="530" y="196" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">reported vs recomputed</text>
38
+ <rect x="530" y="209" width="178" height="26" rx="8" fill="#202839"/>
39
+ <text x="540" y="227" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">rounding tolerance</text>
40
+ <rect x="530" y="241" width="178" height="26" rx="8" fill="#202839"/>
41
+ <text x="540" y="259" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">p = .010 → .0500</text>
42
+ <rect x="530" y="273" width="178" height="26" rx="8" fill="#202839"/>
43
+ <text x="540" y="291" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">charStart–charEnd</text>
44
+ <rect x="752" y="120" width="304" height="148" rx="18" fill="#1b2231" stroke="#2e374b" stroke-width="1.5" filter="url(#soft)"/>
45
+ <text x="772" y="148" fill="#8496f5" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="14.5" font-weight="700">findings[]</text>
46
+ <rect x="973.1875" y="130" width="67.875" height="18" rx="9.0" fill="#202839"/>
47
+ <text x="982.1875" y="142.57" fill="#8496f5" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="10.5">3 statuses</text>
48
+ <text x="772" y="176" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">t(28): inconsistent (p-value)</text>
49
+ <text x="772" y="198" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">F(2, 27): consistent</text>
50
+ <text x="772" y="220" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">chars 38–51 · 90–106</text>
51
+ <rect x="752" y="288" width="304" height="122" rx="18" fill="#1b2231" stroke="#2e374b" stroke-width="1.5" filter="url(#soft)"/>
52
+ <text x="772" y="316" fill="#a8b1c4" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="14.5" font-weight="700">stat_report</text>
53
+ <rect x="923.765625" y="298" width="114.78125" height="18" rx="9.0" fill="#202839"/>
54
+ <text x="932.765625" y="310.57" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="10.5">Markdown + SARIF</text>
55
+ <text x="772" y="344" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">SARIF 2.1.0 · one error result</text>
56
+ <text x="772" y="366" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">per inconsistent finding</text>
57
+ <text x="772" y="388" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">REP v1 evidence item</text>
58
+ <rect x="752" y="430" width="304" height="82" rx="18" fill="#1b2231" stroke="#8496f5" stroke-width="1.6" filter="url(#soft)"/>
59
+ <text x="772" y="458" fill="#f0f3f9" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="13.5" font-weight="700">reviewer</text>
60
+ <text x="772" y="482" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">a finding is not misconduct</text>
61
+ <text x="772" y="502" fill="#737b8d" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="10.5">candidate for human review</text>
62
+ <path d="M730 245.0 H742" fill="none" stroke="#8496f5" stroke-width="1.6" stroke-linecap="round"/>
63
+ <path d="M742 210 V471" fill="none" stroke="#8496f5" stroke-width="1.6" stroke-linecap="round"/>
64
+ <line x1="742" y1="194" x2="750" y2="194" stroke="#8496f5" stroke-width="1.6" marker-end="url(#arr)"/>
65
+ <line x1="742" y1="349" x2="750" y2="349" stroke="#8496f5" stroke-width="1.6" marker-end="url(#arr)"/>
66
+ <line x1="742" y1="471" x2="750" y2="471" stroke="#8496f5" stroke-width="1.6" marker-end="url(#arr)"/>
67
+ <line x1="44" y1="420" x2="714" y2="420" stroke="#2b3348" stroke-width="1"/>
68
+ <text x="44" y="444" fill="#737b8d" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11">A finding means the reported p does not follow from the reported statistic — never a claim about the authors.</text>
69
+ <text x="44" y="464" fill="#737b8d" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11">Rounding rule: |recomputed − reported| ≤ half a unit of the last decimal + 0.001.</text>
70
+ <line x1="44" y1="564" x2="1056" y2="564" stroke="#2b3348" stroke-width="1"/>
71
+ <text x="44" y="588" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">config: root · workspaceRoot · maxChars · maxFindings · persist</text>
72
+ <text x="44" y="610" fill="#737b8d" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">arithmetic only · no data re-analysis · no model judgement · no network</text>
73
+ </svg>
@@ -0,0 +1,73 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1100" height="660" viewBox="0 0 1100 660" role="img" aria-label="dsh-statcheck structure diagram">
2
+ <defs>
3
+ <linearGradient id="bg" x1="0" y1="0" x2="0.3" y2="1"><stop offset="0" stop-color="#f9f6fd"/><stop offset="1" stop-color="#e4eaf8"/></linearGradient>
4
+ <filter id="soft" x="-30%" y="-30%" width="160%" height="170%"><feDropShadow dx="0" dy="7" stdDeviation="9" flood-color="#16122c" flood-opacity="0.10"/></filter>
5
+ <marker id="arr" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6.4" markerHeight="6.4" orient="auto-start-reverse"><path d="M0 0 L10 5 L0 10 z" fill="#4B67B4"/></marker>
6
+ </defs>
7
+ <rect width="1100" height="660" fill="url(#bg)"/>
8
+ <text x="44" y="58" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="28" font-weight="700">dsh-statcheck</text>
9
+ <text x="44" y="88" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="15">APA report → statistic + reported p → recomputed p → finding → summary + REP evidence</text>
10
+ <rect x="923.328125" y="36" width="132.671875" height="26" rx="13.0" fill="#f5f2fb"/>
11
+ <text x="935.328125" y="53.08" fill="#4B67B4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="12" font-weight="700">5 statistic families</text>
12
+ <rect x="44" y="120" width="214" height="250" rx="18" fill="#ffffff" stroke="#e6e2ef" stroke-width="1.5" filter="url(#soft)"/>
13
+ <text x="62" y="146" fill="#8f94a4" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="12" font-weight="700">01</text>
14
+ <text x="62" y="172" fill="#141419" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="16.5" font-weight="700">Parse</text>
15
+ <text x="62" y="196" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">APA inline reports</text>
16
+ <rect x="62" y="209" width="178" height="26" rx="8" fill="#f5f2fb"/>
17
+ <text x="72" y="227" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">t(28) = 2.048</text>
18
+ <rect x="62" y="241" width="178" height="26" rx="8" fill="#f5f2fb"/>
19
+ <text x="72" y="259" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">F(2, 27) = 3.354</text>
20
+ <rect x="62" y="273" width="178" height="26" rx="8" fill="#f5f2fb"/>
21
+ <text x="72" y="291" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">χ²(1) = 3.841</text>
22
+ <line x1="260" y1="245.0" x2="276" y2="245.0" stroke="#4B67B4" stroke-width="1.8" marker-end="url(#arr)"/>
23
+ <rect x="278" y="120" width="214" height="250" rx="18" fill="#ffffff" stroke="#e6e2ef" stroke-width="1.5" filter="url(#soft)"/>
24
+ <text x="296" y="146" fill="#8f94a4" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="12" font-weight="700">02</text>
25
+ <text x="296" y="172" fill="#141419" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="16.5" font-weight="700">Recompute</text>
26
+ <text x="296" y="196" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">statistic → exact p</text>
27
+ <rect x="296" y="209" width="178" height="26" rx="8" fill="#f5f2fb"/>
28
+ <text x="306" y="227" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">two-tailed t / r / z</text>
29
+ <rect x="296" y="241" width="178" height="26" rx="8" fill="#f5f2fb"/>
30
+ <text x="306" y="259" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">upper-tail F / χ²</text>
31
+ <rect x="296" y="273" width="178" height="26" rx="8" fill="#f5f2fb"/>
32
+ <text x="306" y="291" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">zero dependencies</text>
33
+ <line x1="494" y1="245.0" x2="510" y2="245.0" stroke="#4B67B4" stroke-width="1.8" marker-end="url(#arr)"/>
34
+ <rect x="512" y="120" width="214" height="250" rx="18" fill="#ffffff" stroke="#e6e2ef" stroke-width="1.5" filter="url(#soft)"/>
35
+ <text x="530" y="146" fill="#8f94a4" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="12" font-weight="700">03</text>
36
+ <text x="530" y="172" fill="#141419" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="16.5" font-weight="700">Judge</text>
37
+ <text x="530" y="196" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">reported vs recomputed</text>
38
+ <rect x="530" y="209" width="178" height="26" rx="8" fill="#f5f2fb"/>
39
+ <text x="540" y="227" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">rounding tolerance</text>
40
+ <rect x="530" y="241" width="178" height="26" rx="8" fill="#f5f2fb"/>
41
+ <text x="540" y="259" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">p = .010 → .0500</text>
42
+ <rect x="530" y="273" width="178" height="26" rx="8" fill="#f5f2fb"/>
43
+ <text x="540" y="291" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">charStart–charEnd</text>
44
+ <rect x="752" y="120" width="304" height="148" rx="18" fill="#ffffff" stroke="#e6e2ef" stroke-width="1.5" filter="url(#soft)"/>
45
+ <text x="772" y="148" fill="#4B67B4" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="14.5" font-weight="700">findings[]</text>
46
+ <rect x="973.1875" y="130" width="67.875" height="18" rx="9.0" fill="#f5f2fb"/>
47
+ <text x="982.1875" y="142.57" fill="#4B67B4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="10.5">3 statuses</text>
48
+ <text x="772" y="176" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">t(28): inconsistent (p-value)</text>
49
+ <text x="772" y="198" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">F(2, 27): consistent</text>
50
+ <text x="772" y="220" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">chars 38–51 · 90–106</text>
51
+ <rect x="752" y="288" width="304" height="122" rx="18" fill="#ffffff" stroke="#e6e2ef" stroke-width="1.5" filter="url(#soft)"/>
52
+ <text x="772" y="316" fill="#4d5261" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="14.5" font-weight="700">stat_report</text>
53
+ <rect x="923.765625" y="298" width="114.78125" height="18" rx="9.0" fill="#f5f2fb"/>
54
+ <text x="932.765625" y="310.57" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="10.5">Markdown + SARIF</text>
55
+ <text x="772" y="344" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">SARIF 2.1.0 · one error result</text>
56
+ <text x="772" y="366" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">per inconsistent finding</text>
57
+ <text x="772" y="388" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">REP v1 evidence item</text>
58
+ <rect x="752" y="430" width="304" height="82" rx="18" fill="#ffffff" stroke="#4B67B4" stroke-width="1.6" filter="url(#soft)"/>
59
+ <text x="772" y="458" fill="#141419" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="13.5" font-weight="700">reviewer</text>
60
+ <text x="772" y="482" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">a finding is not misconduct</text>
61
+ <text x="772" y="502" fill="#8f94a4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="10.5">candidate for human review</text>
62
+ <path d="M730 245.0 H742" fill="none" stroke="#4B67B4" stroke-width="1.6" stroke-linecap="round"/>
63
+ <path d="M742 210 V471" fill="none" stroke="#4B67B4" stroke-width="1.6" stroke-linecap="round"/>
64
+ <line x1="742" y1="194" x2="750" y2="194" stroke="#4B67B4" stroke-width="1.6" marker-end="url(#arr)"/>
65
+ <line x1="742" y1="349" x2="750" y2="349" stroke="#4B67B4" stroke-width="1.6" marker-end="url(#arr)"/>
66
+ <line x1="742" y1="471" x2="750" y2="471" stroke="#4B67B4" stroke-width="1.6" marker-end="url(#arr)"/>
67
+ <line x1="44" y1="420" x2="714" y2="420" stroke="#dcd8ea" stroke-width="1"/>
68
+ <text x="44" y="444" fill="#8f94a4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11">A finding means the reported p does not follow from the reported statistic — never a claim about the authors.</text>
69
+ <text x="44" y="464" fill="#8f94a4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11">Rounding rule: |recomputed − reported| ≤ half a unit of the last decimal + 0.001.</text>
70
+ <line x1="44" y1="564" x2="1056" y2="564" stroke="#dcd8ea" stroke-width="1"/>
71
+ <text x="44" y="588" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">config: root · workspaceRoot · maxChars · maxFindings · persist</text>
72
+ <text x="44" y="610" fill="#8f94a4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">arithmetic only · no data re-analysis · no model judgement · no network</text>
73
+ </svg>
package/lib/check.d.ts CHANGED
File without changes
File without changes
package/lib/check.js CHANGED
File without changes
package/lib/check.js.map CHANGED
File without changes
package/lib/config.d.ts CHANGED
File without changes
File without changes
package/lib/config.js CHANGED
File without changes
package/lib/config.js.map CHANGED
File without changes
package/lib/index.d.ts CHANGED
File without changes
File without changes
package/lib/index.js CHANGED
File without changes
package/lib/index.js.map CHANGED
File without changes
package/lib/math.d.ts CHANGED
File without changes
package/lib/math.d.ts.map CHANGED
File without changes
package/lib/math.js CHANGED
File without changes
package/lib/math.js.map CHANGED
File without changes
package/lib/report.d.ts CHANGED
File without changes
File without changes
package/lib/report.js CHANGED
File without changes
package/lib/report.js.map CHANGED
File without changes
package/lib/runtime.d.ts CHANGED
File without changes
File without changes
package/lib/runtime.js CHANGED
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/lib/version.d.ts CHANGED
@@ -3,5 +3,5 @@
3
3
  * @module dsh-statcheck/version
4
4
  */
5
5
  /** The package version. */
6
- export declare const VERSION = "0.1.1";
6
+ export declare const VERSION = "0.1.3";
7
7
  //# sourceMappingURL=version.d.ts.map
File without changes
package/lib/version.js CHANGED
@@ -3,5 +3,5 @@
3
3
  * @module dsh-statcheck/version
4
4
  */
5
5
  /** The package version. */
6
- export const VERSION = '0.1.1';
6
+ export const VERSION = '0.1.3';
7
7
  //# sourceMappingURL=version.js.map
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-statcheck",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Recompute the statistics reported in a manuscript and flag self-inconsistent p values for DeepSeek Harness: APA-style t/F/chi-square/r/z parsing, two-tailed and upper-tail p values from zero-dependency distributions, CI-versus-p checks, exact character locators, Markdown and SARIF 2.1.0 output, and a REP v1 evidence record. Arithmetic, not accusation.",
5
5
  "author": "PerryLink contributors",
6
6
  "repository": {
@@ -31,6 +31,7 @@
31
31
  "README-zh.md",
32
32
  "LICENSE",
33
33
  "SECURITY.md",
34
+ "docs/assets/*",
34
35
  "THIRD_PARTY_NOTICES.md"
35
36
  ],
36
37
  "sideEffects": false,
@@ -54,19 +55,19 @@
54
55
  ],
55
56
  "engines": {
56
57
  "node": "^22.19.0 || >=24.9.0",
57
- "dsh": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0"
58
+ "dsh": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0 || >=0.2.3-0 <0.3.0-0"
58
59
  },
59
60
  "packageManager": "pnpm@12.16.1",
60
61
  "peerDependencies": {
61
62
  "@deepseek-ai/cordis": "^4.0.5-alpha.1",
62
- "@deepseek-ai/dsh-tools": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0",
63
+ "@deepseek-ai/dsh-tools": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0 || >=0.2.3-0 <0.3.0-0",
63
64
  "@deepseek-ai/schemastery": "^3.18.5-alpha.1",
64
65
  "@perrylink/dsh-research-core": "^0.1.0"
65
66
  },
66
67
  "dependencies": {},
67
68
  "devDependencies": {
68
69
  "@deepseek-ai/cordis": "^4.1.0",
69
- "@deepseek-ai/dsh-tools": "0.2.2-rc.1",
70
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.4",
70
71
  "@deepseek-ai/schemastery": "~3.19.0",
71
72
  "@perrylink/dsh-research-core": "file:../dsh-research-core",
72
73
  "@types/node": "^22.20.5",
package/src/check.ts CHANGED
File without changes
package/src/config.ts CHANGED
File without changes
package/src/index.ts CHANGED
File without changes
package/src/math.ts CHANGED
File without changes
package/src/report.ts CHANGED
File without changes
package/src/runtime.ts CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
package/src/version.ts CHANGED
@@ -4,4 +4,4 @@
4
4
  */
5
5
 
6
6
  /** The package version. */
7
- export const VERSION = '0.1.1'
7
+ export const VERSION = '0.1.3'