DSH Plugins Marketplace

DSH Plugins

Plugins

/

Development & Infrastructure

/

dsh-cite-verify

d

dsh-cite-verify

Identified

Verify that a citation exists and that its metadata is right for DeepSeek Harness: DOI/PMID/arXiv/BibTeX resolution through Crossref, PubMed and arXiv, field-by-field metadata comparison, and a REP v1

dsh-cite-verify: a citation resolved against Crossref — doi-exists pass, year 2021 against the record's 2020 warn, a retraction notice warn — with the immutable snapshot and REP evidence id on the right and the derived status below

dsh-cite-verify

Verify that a citation exists — and that its metadata is right.

DOI / PMID / arXiv / BibTeX → the provider's own answer, field-by-field checks, a content-addressed snapshot, and a REP evidence record. not_found is reported as skipped, never as fabrication.

简体中文 · Español · Português · हिन्दी

License Node


What it does

  • Resolves doi through Crossref, pmid through PubMed E-utilities, arxiv through the arXiv Atom API.
  • Compares the citation as written against the resolved record: title (token similarity), authors (family names), year (±1 = warning), venue, pages.
  • Stores the provider's exact response as an immutable snapshot and registers a REP v1 evidence item with those checks.
  • cite_fix returns a corrected BibTeX entry as text — it never edits files.
  • cite_export formats the resolved record as GB/T 7714 (numeric), APA 7, IEEE, Vancouver, BibTeX, RIS or CSL-JSON — missing fields are reported, never guessed.
dsh-cite-verify structure: DOI/PMID/arXiv/BibTeX resolves through four allowlisted providers, compares title, authors, year, venue, pages and version field by field, stores an immutable snapshot and a REP evidence item, and derives status from checks; not_found is recorded as skipped and the verdict stays with the reviewer

Structure: resolve → compare → record; checks[] and status are the two outputs, and a network failure is unchecked rather than a citation failure. The token labels inside the diagram are the real tool and check names, so the same picture serves all five languages.

What it does not do

  • No title search. You must supply an identifier (DOI/PMID/arXiv/BibTeX). "Find me a paper that says X" is a different plugin.
  • No retraction monitoring. v0.1 only reports update notices attached to the resolved record itself (update-to); deciding whether a work is retracted needs dsh-retraction-watch (W2).
  • No PDF reading. That is dsh-doc-anchor.
  • No scraping. Only the four allowlisted HTTPS APIs; no CNKI, no Sci-Hub, no paywall bypass.
  • No silent repair. cite_fix reports diffs; applying them is the user's decision.
  • No style engine and no case rewriting. Seven built-in formats; CSL-JSON is the escape hatch for external citeproc. The title is preserved as given.

Compatibility

DeepSeek Harnessdsh-v0.2.3-alpha.1 (verified 2026-11-22); peer line >=0.2.2-0 <0.3.0 || >=0.2.2-0 <0.3.0
Node^22.19.0 || >=24.9.0 (tested on 24.22.1), ESM only
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
Runtime dependencieszero
dsh plugin --profile <name> add @perrylink/dsh-research-core dsh-cite-verify
dsh --profile <name> --dump-config | grep dsh-cite-verify
dsh plugin --profile <name> remove dsh-cite-verify

When ctx.researchEvidence is mounted the evidence goes there; otherwise the plugin uses its own core store under root.

Tools

cite_verify

ParameterTypeNotes
doi / pmid / arxivstringat least one identifier (or bibtex)
bibtexstringentry supplies the identifier and the expected fields
title, authors, year, venue, pagesfields as cited, compared against the record
freshbooleanbypass the response cache

Returns { ok, status, notFound, lookupError, resolved, checks[], evidenceId, recordPath?, warnings[] }.

notFound is true only when no provider returned a record, at least one definitively returned 404, and no lookup failed. lookupError is true when a network failure, timeout, 5xx or unparsable response prevented a check — that answer is unchecked and must not be read as “no record found”. If one identifier fails while another resolves, the record is still returned with lookupError: true.

status is derived from the checks: any fail → fail, any warn → warn, any pass → ok, nothing checked → unchecked.

cite_batch

{ citations: string[], fresh? } where each item is doi:10..., pmid:123, arxiv:2401.00001, an @article{...} entry, or a bare identifier detected by shape. Bounded concurrency, per-item failures, duplicate detection.

Each item carries status, lookupError?, duplicate? and evidenceId?. A repeated identifier is marked duplicate: true; it keeps fail if it already failed (a duplicate never downgrades the worst status) and is otherwise raised to warn. The batch warnings[] counts the duplicates.

cite_fix

Same inputs as cite_verify. Returns { ok, bibtex, diffs[], status, evidenceId?, warnings[] }. Text only — never writes to disk.

cite_export

Same identifier inputs as cite_verify, plus style and optional volume, issue, publisher, url, language (zh selects 等 over et al.) and index (IEEE reference number). Pass a record object to format offline.

styleFormat
gbt7714-numeric (default)作者. 题名[J]. 刊名, 年, 卷(期): 页. DOI.
apaAuthor, A. A., & Author, B. B. (Year). Title. Journal, Volume(Issue), pages. https://doi.org/…
ieee[n] A. A. Author, "Title," Journal, vol. V, no. I, pp. P, Year.
vancouverAuthor AB. Title. Journal. Year;Volume(Issue):Pages.
bibtex@article{key, …} with a deterministic key
risTY - JOUR … ER -
csl-jsonCSL-JSON item for external processors

Returns { ok, style, entry, missing[], evidenceId?, warnings[] }. missing lists fields absent from the record; an identifier still goes through the same provider lookup and REP evidence path as cite_verify.

Error codes

INVALID_INPUT · INVALID_BIBTEX · UNSUPPORTED_IDENTIFIER · STORE_ERROR · BATCH_TOO_LARGE

Network failures never become citation failures: they appear as skipped checks (network_error, rate_limited, unavailable for timeouts), set lookupError: true, and leave the evidence unchecked with notFound: false.

Check semantics

Checkpassfail / warnskipped
doi-existsCrossref returned the DOI—not_found when Crossref has no such DOI
other (PMID/arXiv existence)provider returned the record—not_found
metadata-match (title)similarity ≥ titleThresholdfail below threshold—
metadata-match (authors)all cited family names presentwarn ≥50 %, else fail—
metadata-match (year)exactwarn ±1, fail otherwise—
metadata-match (venue)similarity ≥ 0.6warn—
metadata-match (pages)normalized equalitywarn—
version-matchtwo identifiers agree on the titlewarn on disagreement—
retraction—warn when the record carries an update notice—

not_found must be recorded as skipped (enforced by the REP core store and schema). It is not evidence of fabrication and not evidence of cleanliness.

Network bounds

  • Allowlist: api.crossref.org, api.openalex.org, eutils.ncbi.nlm.nih.gov, export.arxiv.org (HTTPS only, no credentials, no custom port).
  • Redirects: followed manually, every hop re-validated; a redirect to a non-allowlisted host is a hard blocked_host failure.
  • Time and rate: per-request timeout, per-host minimum interval, one bounded retry on 429/503 (Retry-After respected up to 5 s).
  • Cache: provider responses cached under <root>/cache for cacheTtlMs (7 days default); fresh bypasses. A cache write failure is a cache miss, never a failure.

Configuration

KeyDefaultMeaning
enabledtruefalse mounts nothing
root.cite-verifystore + cache root
userAgentdsh-cite-verify/0.1.0 (…)sent to every provider
mailto—PubMed tool/email parameters
timeoutMs15000per-request deadline
minIntervalMs150per-host minimum interval
retries1retries on 429/503
maxRedirects3redirect budget (each hop re-validated)
cacheTtlMs604800000cache lifetime (0 disables)
titleThreshold0.85title similarity for a pass
batchConcurrency3parallel lookups
maxBatch50items per cite_batch

Invalid values fail loud at mount.

Security boundaries

  • Documents are not read; only JSON/XML metadata from four allowlisted hosts.
  • Response bodies become immutable snapshots; the evidence records the URL and the provider, never credentials.
  • Redirect and allowlist checks prevent SSRF through an allowed host.
  • No telemetry, no tokens, no uploads of user data (the query goes to the public metadata API, as it must).

Known limitations (v0.1)

  • Retraction status is not queried. Only the resolved record's own update-to notices are surfaced, with a warning. True monitoring is dsh-retraction-watch.
  • Crossref-only metadata for DOIs. OpenAlex is allowlisted but not yet used as a second opinion.
  • Author comparison is family-name based. Name particles and transliterations can differ; a mismatch is a warning, not proof of a wrong citation.
  • BibTeX parsing is a subset (no macro expansion, nested braces preserved verbatim).
  • Cache can be stale up to cacheTtlMs; use fresh when it matters.

Evaluation

dsh-cite-verify benchmark: a real run over 100 frozen citation cases — existence precision and recall 1.00, field F1 0.9774, and three venue-abbreviation false positives reported

Animated: the benchmark adapter's real stdout over the frozen fixtures (no network; re-run 2026-11-21). The three false positives are venue abbreviations and are reported, not hidden.

Benchmark — dsh-research-bench citations v0.1.0 (100 cases)

Command (requires the bench checkout next to this repo, or BENCH_DIR):

pnpm run bench:citations

Result (reproducible, frozen dataset, every provider call answered from the case fixtures — no network):

metricvalue
existence precision1.00
existence recall1.00
field precision0.9559
field recall1.00
field F10.9774
update-notice precision1.00
update-notice recall1.00
clean false-positive rate0.10
exact-match rate0.97

The three false positives are all venue abbreviations (J. Synth. Tests vs Journal of Synthetic Tests) on otherwise-correct citations: venue comparison is token overlap with a 0.6 threshold and does not expand journal abbreviations. That is a known limitation, reported rather than hidden. Diacritic/transliteration differences (Müller/Muller, Østergård/Ostergard) and omitted subtitles no longer produce false positives.

Raw per-case predictions: bench/results-citations.json.

Scope warning: the dataset is synthetic and clean. A 1.0 existence score says the checking logic maps frozen fixtures to correct verdicts; it does not predict real-world accuracy, where provider drift, transliteration and ambiguous metadata dominate. dsh-research-bench is a test split and is not used for tuning.

Unit and integration tests

  • 70 tests across 8 files: HTTP bounds (allowlist, redirect re-validation, retries, timeout mapping), BibTeX (braced and parenthesised entries), comparison (incl. diacritics/subtitle and PubMed family+initials), verification (found / not-found / timeout / PMID / arXiv / BibTeX / update notice / two-source cross-check / cache / fresh, and notFound vs lookupError, incl. a mixed 404 + timeout), runtime (REP record validity, persistence, re-verification without an evidence conflict, batch locality, duplicates incl. fail-preserving status, fix diffs), tool surface (including the not-found vs failed-lookup render), package contract.
  • Every provider interaction in the test suite is scripted — CI never depends on the network.

Development

pnpm install
pnpm run typecheck
pnpm test
pnpm run build
pnpm run verify:package

License

Apache-2.0. No third-party runtime code.

Comments

Loading…

Similar plugins

dsh-reference-checker

by Yu-tao-Li

DeepSeek Harness 参考文献真实性检查器 (dsh-reference-checker) — refcheck_check 工具:逐条核对论文文献(PDF/BibTeX/tex/文本)于 Crossref / OpenAlex / arXiv,给出 found/partial/not_found/error 判定与按输入样式的更正版引用 | Reference verificatio

Tools & CapabilitiesManifest valid

★ 4

↓ 1.2k/wk

MIT

JavaScript

Aug 19, 2026

dsh plugin --profile web add dsh-reference-checker

Collects the papers a DeepSeek Harness conversation cited, checks each one against Crossref, OpenAlex, arXiv and DataCite, and exports the confirmed entries as BibTeX or RIS.

Tools & CapabilitiesManifest valid

★ 1

MIT

TypeScript

dsh plugin --profile web add dsh-refkeeper

by gsh150801

Whole-report verification for scientific reports: per-claim checks against Crossref, PubMed (retraction scan), ClinicalTrials.gov, UniProtKB, GEO/SRA and PatentsView, URL accessibility and title agree

Workflow & AutomationTools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 2

MIT

JavaScript

Sep 1, 2026

dsh plugin --profile web add dsh-bioinf-verify

by Parker-xia

DSH plugin: tidy messy pasted citations into uniformly formatted references (refs_parse / refs_verify / refs_dedup / refs_format + research-refs skill)

Manifest valid

★ 0

MIT

JavaScript

Aug 26, 2026

dsh plugin --profile web add dsh-research-refs

by zhaoxuejie

DeepSeek Harness 学术文献插件:arXiv / Semantic Scholar 真实数据源检索、单篇详情、GB/T 7714 / APA / BibTeX 引用格式生成、本地文献库与批量导出,杜绝模型编造文献信息

Development & InfrastructureManifest valid

★ 3

↓ 50/wk

MIT

TypeScript

Sep 8, 2026

dsh plugin --profile web add dsh-plugin-academic-paper

by houdinicc

Deep research for DeepSeek Harness: multi-query search, source fetching, evidence extraction and a cited evidence report, through the host ctx.web service. · DSH 深度研究插件:多查询检索、正文取证、交叉印证,产出可引用的证据报告。

Manifest valid

★ 0

MIT

JavaScript

Oct 21, 2026

dsh plugin --profile web add dsh-deep-research