Evidence-list completeness check: maps facts to evidence and reports gaps with rule IDs.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-evidence-check
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:PerryLink/dsh-evidence-check
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
dsh-evidence-check
Current version 0.2.16.
Check an exhibit list row by row for completeness, source, dates and numbering — and get back a list of which row, which column, what is missing.
A DeepSeek Harness check plugin for lawyers and litigation support: the case header plus one row per exhibit goes in, a rule pack with verbatim citations runs, and what comes back is the list of differences the material itself can be held to — no source file touched, no verdict issued.
Last verified on DeepSeek Harness dsh-v0.2.3-alpha.1 (2026-11-22).
Install · Configuration · FAQ · 简体中文 · English · Español · Português · हिन्दी
dsh plugin --profile <name> add dsh-evidence-check
Community plugin, not affiliated with DeepSeek. Canonical repository: https://github.com/PerryLink/dsh-evidence-check (Gitee is a mirror).
What it is
dsh-evidence-check reads one exhibit list — the case header plus one row per exhibit — and checks that list's own completeness and internal consistency: that each exhibit carries a name and the fact it is offered to prove (claim, exhibitName), that its source is recorded, that its form comes from the vocabulary you configure, that obtainedAt parses and does not fall after submittedAt, that no exhibitNo is repeated, that the header declares caseNo and party, and that no template placeholder survives in the fact column. It returns the list of what is inconsistent, where, and what to fix; the source file is never modified, it makes no network request and calls no model. It does not decide whether evidence is authentic, lawfully obtained or relevant, whether it proves the fact, or whether it should be admitted or excluded: that is the court's judgement after cross-examination.
Three-step setup
Install:
dsh plugin --profile <name> add dsh-evidence-checkThe check is also one part of "Documents and Governance Suite" in WorkBuddy / Coze (availability as listed in that marketplace).
Minimal configuration (the defaults are usable as shipped):
- insert: - id: dsh-evidence-check name: dsh-evidence-checkEvery tunable lives in the Schemastery schema in
src/config.tsand works out of the box; per-rule thresholds live in the rule pack underrules/.Verify it mounted:
dsh --profile <name> --dump-config | grep 'dsh-evidence-check'Then run the bundled sample once (about a minute):
node samples/quickstart/run.mjs$ node samples/quickstart/run.mjs evidence_check: 1 issue(s) — error 0, warn 1, info 0 skipped: 1The sample input is in
samples/quickstart/input/, the expected output insamples/quickstart/expected/result.json, and the first-run terminal screenshot indocs/assets/quickstart.png.
Uninstall: dsh plugin --profile <name> remove dsh-evidence-check (or remove the row from the profile patch).
Core capabilities
The plugin registers the evidence_check tool: it reads one exhibit list (case header plus one row per exhibit), applies a versioned rule pack, and returns a structured report. Material is JSON or YAML; every check that could not run is listed in skipped with its reason.
- The rule pack is data — all seven checks live in
rules/evidence-check.yaml, so switching the rule set needs no code change; the pack is validated on load, not trusted. - Severity follows the evidence — a rule based on a derived principle (
derived-from-principle) is capped atwarn; one based on institutional configuration (institutional-configuration) is capped atinfo; neither is ever labellederror(a test asserts it). - An empty issue list is not "nothing is wrong" — every check that cannot run reports itself in
skippedwith its reason;EV-003ships with an emptyvalues, so it reports itself inskippedrather than passing silently. - No adjudicating wording — the report lists differences and never pronounces on compliance, liability or correctness; a wording guard forces the report to carry its disclaimer.
- No fabricated citations — every rule carries
document/number/clause/excerpt/kind/source;excerptmust be a verbatim quotation, and when the text is not in hand the pack says so instead of presenting a paraphrase as a quotation.
exhibit list (JSON/YAML) ──evidence_check──▶ rule pack EV-001…EV-007 ──▶ report (issues + skipped)
▲ │
└──────────────────────────── source is read-only, never modified ────────┘
Rules at a glance
| Rule | What it checks | Severity | Basis kind |
|---|---|---|---|
EV-001 |
every exhibit names itself and its fact | warn | verbatim clause |
EV-002 |
every exhibit records its source | warn | verbatim clause |
EV-003 |
the form comes from your vocabulary (off by default) | info | institutional configuration |
EV-004 |
the acquisition date parses and is not later than submission | warn | derived principle |
EV-005 |
exhibit numbers are unique within the list | warn | derived principle |
EV-006 |
the list declares its case number and filing party | warn | derived principle |
EV-007 |
the fact column holds no unreplaced placeholder | warn | derived principle |
Examples

Animated replay of a real run recorded in this repository.
These are the plugin's real entry points; install once, then call one. The output below is the plugin's real run against its own EV-001 test fixture, not an illustration.
Detailed output — tool evidence_check, input:
{"rows":[{"证据编号":"证1","待证事实":"","证据名称":""}]}
Output:
{
"id": "dsh-evidence-check.EV-001.de09b5a6",
"ruleId": "EV-001",
"severity": "warn",
"locator": {
"field": "claim",
"row": 1
},
"found": "第 1 行 claim、exhibitName 都为空",
"expected": "claim、exhibitName 至少应填写一项",
"fix": "补填证据名称与待证事实;本条只核对是否填写,不判断证据是否足以证明"
}
Observed from tests/fixtures/EV-001/EV-001-unsafe.json (cases.json expects EV-001 count 1); run via lib/index.mjs rules/evidence-check.yaml
What it answers
| You ask | What it answers |
|---|---|
| We filed inside the period the court set. Will this tool confirm that? | No. EV-004 only checks that the two date columns the list itself carries can be parsed and that obtainedAt is not later than submittedAt; it computes no evidence period, because that period is set by the court's notice or agreed by the parties, with extensions and suspensions of its own. A day-by-day reading of the list is therefore not a finding about timeliness. |
| The exhibit name is filled in but the fact column is blank. | EV-001 covers claim and exhibitName together and asks only that at least one of the two be filled; it reports a row where both cells are empty, and does not judge whether the exhibit is enough to prove the fact. |
| Two rows carry the same exhibit number. | EV-005 compares the exhibitNo values inside the list, ignoring whitespace, and reports the later row with the row it duplicates. It only establishes that the number is not unique — whether that is a double registration or a mis-copied number is left to you. A blank number cell is not part of that comparison. |
| The source of this exhibit is obvious, yet the rule fires. | Because the source cell is not filled. EV-002 requires a source on every exhibit the list gives that column to; it checks that the cell has content, not that the source is lawful or that the way it was obtained was proper. |
| Our list has no case number or filing party in its header. | EV-006 reads the header and reports whichever of caseNo and party the material does not declare. It checks the declaration, not whether what is declared is correct, and a missing declaration is reported once for the header rather than row by row. |
Which rule reports skipped, and why? |
EV-003 does by default: its values ship empty, which means the form vocabulary is unconfigured, and the plugin will not hard-code a list of kinds of evidence because civil, administrative and criminal procedure do not enumerate the same ones. Fill values with your procedure's own kinds and the rule runs; it then checks only that each form cell is one of them, not which kind a piece of evidence really is. |
Configuration
Every tunable lives in the Schemastery schema in src/config.ts, so it can be changed from cordis.yml without editing code; per-rule thresholds live in the rule pack under rules/. There are exactly five configuration keys, in the table below; rule-level parameters follow it.
| Key | Type | Default | Description |
|---|---|---|---|
rulesFile |
string | rules/evidence-check.yaml |
Rule-pack path, relative to the package root |
disabledRules |
string[] | [] |
Rule ids to stop running; each appears in skipped |
onlyRules |
string[] | [] |
Run only these rule ids; empty runs every rule |
skipNotes |
string | "" |
Note appended to every skipped reason |
timeoutMs |
number | 120000 |
Cooperative tool timeout budget |
Rule-level parameters worth knowing:
EV-003values— your procedure's kinds of evidence; empty means the rule does not run and appears inskipped.EV-004field/notAfterField— the date pair, acquisition against submission by default; the same day counts as not later.EV-007terms— the placeholders to look for.
Example values for EV-003 (civil procedure) and EV-007:
values: [书证, 物证, 视听资料, 电子数据, 证人证言, 鉴定意见, 勘验笔录]
terms: ['【', '】', '{{', '}}', 'XXX', '待填', 'TBD']
FAQ
No. The tool only reads the JSON/YAML material text you pass in and never modifies the source file; the plugin is pure ESM with no native code, no network access and no model call (see "Compatibility"), so the material never leaves your machine.
No. EV-003 ships with an empty values, so the rule reports itself in skipped with its reason — an empty issue list cannot be read as "nothing is missing". Fill values with your procedure's kinds and the rule starts running; from then on it only checks that each form cell is one of them, not which kind a piece of evidence actually is.
Check that main resolves to lib/index.mjs and that pnpm run build produced it; a wrong main makes the loader skip the entry silently.
The peer range covers 0.1.x and 0.2.x; if your runtime sits outside it, grant an explicit exemption: dsh plugin --profile <name> allow-version dsh-evidence-check@0.1.0 --dsh-version <runtime> --accept-risk. Peer compatibility at install time is enforced by the runtime.
The tool works in native and ptc mode; for a large set of documents prefer ptc, so the schema cost is paid once. All arithmetic is wall-clock arithmetic on the supplied strings, with no time-zone conversion.
Standards it follows
| Document | Number | Cited by rules |
|---|---|---|
| Provisions of the Supreme People's Court on Evidence in Civil Proceedings | Fa Shi [2019] No. 19 (version and clause-number verification status differs per rule — see each rule's number field) |
EV-001, EV-002, EV-004, EV-005, EV-006, EV-007 |
| Provisions of the Supreme People's Court on Evidence in Civil Proceedings | Fa Shi [2019] No. 19 (in force since 1 May 2020) | EV-003 |
Boundary: this plugin checks an exhibit list for what a list can be held to mechanically — that every exhibit names itself and the fact it is offered to prove, that its source is recorded, that its form comes from your vocabulary, that acquisition precedes submission, that exhibit numbers are unique, that the list names its case and the party filing it, and that no placeholder survives. It does not decide whether evidence is authentic, lawfully obtained or relevant, whether it proves the fact, or whether it should be admitted or excluded. That is the court's judgement after cross-examination, and it is the heart of the case.
⚠️ Read this before trusting a citation in the report
excerptstatus is per rule, not uniform. Some rules quote the clause verbatim (kind: direct), some are derived from the principle of the cited articles (kind: derived-from-principle, capped atwarn), and some use thresholds your institution configures (kind: institutional-configuration, capped atinfo). The pack never paraphrases a quotation: when the text was not obtained, theexcerptfield says so and the reasoning lives innote; a test asserts that no rule claims a quotation it does not have. For any rule still marked as not obtained, replace theexcerptwith the real clause and raisekindtodirectonce the text is in hand.The conclusion is the reviewer's: this plugin lists differences it can point to in the material and does not decide facts or compliance.
Material format
The tool accepts JSON or YAML:
caseNo: (2026)某民初 1234 号
caseName: 买卖合同纠纷
party: 原告某某公司
rows:
- { 证据编号: 证1, 待证事实: 双方于 2025 年 3 月 10 日签订买卖合同,
证据名称: 买卖合同原件, 证据形式: 书证, 来源: 原告留存,签订时取得,
页码: 第 1-3 页, 原件: 原件, 取得日期: 2025-03-10, 提交日期: 2026-03-02 }
Column names are matched case-insensitively and ignoring spaces, underscores and hyphens; the list's own column names are kept, so a finding names the column it read. Dates may be 2026-03-02 or 2026-03-02 09:30. Fields are optional at the reading layer and validated by the check engine, so a partial export produces findings about what is missing instead of crashing.
Rule sources
Rule data lives in rules/evidence-check.yaml, separate from the code. Every rule carries the document, its number, the clause in the source's own numbering, a verbatim excerpt, a source URL and a basis kind (kind). The load-time guard enforces that an excerpt is a real quotation of at least eight characters, and that a check based only on a derived principle (derived-from-principle, severity capped at warn) or on institutional configuration (institutional-configuration, capped at info) is never labelled error. A pack that overstates its basis fails at load instead of producing a confident-looking report.
The check:citations gate further requires every excerpt segment to be found verbatim in the clause-verification record under rules/evidence/; rules/citations-baseline.json records segments that are not yet traceable, and that baseline may only shrink.
The cited clauses come from the Provisions of the Supreme People's Court on Evidence in Civil Proceedings (Fa Shi [2019] No. 19): Articles 1, 11, 14 and 19, plus the list-relevant articles among Articles 50 to 57. The boundaries confirmed during verification, and the conclusions deliberately not drawn, are recorded in rules/evidence/.
Compatibility
| Surface | Status |
|---|---|
| Harness | Peer range >=0.1.2-rc.1 <0.2.0 || >=0.2.0-0 <0.3.0 — verified to accept both 0.2.0-rc.2 and 0.2.1-rc.2. engines.dsh is declared as >=0.2.1-0 <0.3.0 and is enforced by the host since 0.2.1 |
| Node | ^22.19.0 || >=24.0.0 |
| Platforms | All (plain ESM; no native code, no network, no model call) |
| Tool mode | Works in native and ptc; for a large set of documents prefer ptc, so the schema cost is paid once |
Troubleshooting
EV-003never runs. Its vocabulary is empty. Kinds of evidence differ between civil, administrative and criminal procedure, so the plugin will not impose a list; fill in your procedure'svaluesin the rule pack.EV-004fires although I filed within the period. The rule does not know the period; it only compares the two date cells the list carries. If acquisition really postdates submission, one of the two is wrong.EV-002fires on an exhibit whose source is obvious. A blank source cell means the list does not say where the exhibit came from, which is exactly what a list has to say.EV-005fires twice on one exhibit number. Numbering a supplementary bundle with the same number is common; correct the number rather than relying on the remark.- The plugin installs but the tool never appears. Check that
mainresolves tolib/index.mjsand thatpnpm run buildproduced it; a wrongmainmakes the loader skip the entry silently. dsh plugin addrefuses the package as incompatible. The peer range covers0.1.xand0.2.x; if your runtime sits outside it, grant an explicit exemption:dsh plugin --profile <name> allow-version dsh-evidence-check@0.1.0 --dsh-version <runtime> --accept-risk- A rule did not run. Read the
skippedarray; it names the rule id and the reason. checkreportsmanifest-peersas failed. The static checker compares against a hard-coded peer range that predates the 0.2 line. The runtime enforces peer compatibility at install time; this is a known upstream issue indsh-plugin-dev.- Times look shifted. All arithmetic is wall-clock arithmetic on the supplied strings, with no time-zone conversion.
Ecosystem & quality
- Gitee mirror (sync mirror; GitHub is canonical)
- dshfind plugin page (installs and ranking)
- OpenSSF Scorecard report (driven by .github/workflows/scorecard.yml)
- DSH Market (listed)
- Ecosystem knowledge base · choose a checker by material (the whole family: checkers plus general plugins)
Development
pnpm install
pnpm run typecheck # tsc --noEmit
pnpm test # vitest; every rule has paired compliant/violating fixtures under tests/fixtures/<RULE>/
pnpm run build # tsdown -> lib/index.mjs + lib/index.d.mts
pnpm run check:readmes # five-language README consistency
node ../scripts/sync-shared.mjs dsh-evidence-check # refresh src/shared from ../_shared
The plugin is data-only: src/model.ts declares the table shape, the shared kit supplies the reader and the check engine, and the rule pack declares every check. The rule pack is data, not code: replacing rules/*.yaml switches the rule set without touching TypeScript, and the pack is validated on load rather than trusted. The README images are generated programmatically by scripts/gen-readme-assets.py (Python + Pillow) and are safe to re-run; this plugin has no UI, so the hero is a hand-written SVG flow diagram (light and dark, command-surface tokens only).
Topics: dsh, dsh-plugin, deepseek-harness, cordis, evidence
Family & thanks
This project is part of the DeepSeek Harness plugin family from PerryLink (all Apache-2.0). If it is useful, a star helps the next person find it — nothing is gated behind it.
- @PerryLink — creator and maintainer: the
evidence_checktool, the verbatim-citation rule pack and its clause-verification record, and the five-language docs.
License
LICENSE (Apache License 2.0) © 2026 dsh-evidence-check contributors
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 38796
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37348
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
yikart/AiToEarn#dsh-plugin-aitoearn★ 29024
Generate copy, images and short videos, and publish with one click to Douyin, Kuaishou, Xiaohongshu, WeChat Official, Bilibili, Facebook, TikTok and more, covering the full content lifecycle from creation to publishing and monetization.
superdesigndev/treg★ 10192
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 6129
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
Hithink-Tech-Org/Financial-API#hithink-finance★ 4796
Query Hithink Finance data in DeepSeek Harness, view charts in chat, and save refreshable dashboards.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.