Vai al contenuto principale
P

dsh-dmp

perrylink/dsh-dmp

Data-management-plan tooling for DeepSeek Harness: a ten-section scaffold with prompts, completeness/consistency checks (datasets, personal data, open-sharing conflicts, retention minimum, backup, repository/license/DOI, contact), Markdown/JSON/SARIF export. Checks are internal consistency checks, not funder-template certification; no network, no file writes.

Installazione

dsh plugin --profile web add github:perrylink/dsh-dmp

README

dsh-dmp: a data-management plan checked against its own sections — missing_sharing is an error, retention of 2 years is below the 5-year default, and storage never mentions backup; complete: false, coverage: 0.9 and retentionYears: 2 are shown on the right

dsh-dmp

当前版本 0.1.4。

A data-management plan that says where the data lives, who can touch it, and what happens after the grant ends.

Ten-section scaffold with prompts, completeness and consistency checks (personal data vs open sharing, retention minimum, backup, repository/licence/DOI), and a Markdown export you can paste into the funder's form.

Last verified on DeepSeek Harness dsh-v0.2.3-alpha.1 (2026-11-22).

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

License Node


What it does

  • dmp_scaffold — returns the ten sections (data description, collection, documentation, storage/backup, security, sharing, retention, roles, legal basis, costs) filled with prompts, not invented project content, plus optional dataset entries.
  • dmp_check — completeness (10 sections), dataset coverage (repository, licence, DOI), personal-data consistency (security and legal basis required; open sharing without de-identification is an error), retention below the configured minimum, storage without backup, missing contact.
  • dmp_export — Markdown (identity, dataset table, sections, issue table) + JSON check + SARIF 2.1.0.
dsh-dmp structure: dmp_scaffold returns ten prompt-filled sections, dmp_check adds completeness and consistency issues such as missing sections, retention below the minimum, storage without backup and open sharing of personal data, and dmp_export renders the plan as Markdown with a JSON check and SARIF 2.1.0; the labels inside the diagram are the real tool and check names

Structure: scaffold → check → export; check and the SARIF log are the two outputs, and every issue is a completeness/consistency finding rather than funder certification. 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 funder-template certification. Funder templates change; the checks are completeness/consistency checks. Verify the current call text.
  • No legal advice. "Personal data" and "open sharing" are judged by flags in the plan, not by a legal analysis.
  • No repository submission. It writes Markdown; you submit.
  • No network, no file writes. Pure local documents.

Sections

KeyRequired content
dataDescriptiondatasets, types, formats, volumes, personal-data flag
collectioncollection/generation process
documentationmetadata standard, codebook, README
storagestorage location, backup, restore tests
securityaccess control, encryption, devices
sharingwhat is shared, when, licence, repository, access route
retentionexplicit years and destruction plan
rolesdata steward, responsibilities, contact
legalethics approval, consent, DPA, transfers
costsstorage/curation costs and coverage

Checks

CodeSeverityMeaning
missing_*warning/errora required section is empty or too short
no_datasetserrorno dataset listed
personal_data_without_security / _without_legalerrorpersonal data flagged, section missing
open_sharing_of_personal_dataerroropen sharing proposed without de-identification/restricted access
retention_below_minimumwarningparsed retention < configured minimum (default 5 years — verify)
retention_unparseablewarningno explicit period found
storage_without_backupwarningstorage section never mentions backup/versioning
dataset_without_repository / _without_licensewarningdataset lacks repository or licence
dataset_without_persistent_idinfono DOI
no_contactwarningno data steward/contact

Tools

dmp_scaffold

{ title?, funder?, grantId?, institution?, contact?, datasets? } → { ok, plan }.

dmp_check

{ plan, minRetentionYears? } → { ok, check: { complete, coverage, issues, retentionYears? } }.

dmp_export

{ plan, minRetentionYears? } → { ok, markdown, check, sarif }.

Compatibility & install

DeepSeek Harnessdsh-v0.2.2-rc.4 (verified 2026-11-18); peer >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0
Node^22.19.0 || >=24.9.0 (tested 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-dmp
dsh --profile <name> --dump-config | grep dsh-dmp

Family-wide peer note: @perrylink/dsh-research-core is declared as a peer for a single, uniform install contract across the research family, even though this package does not import it at runtime.

Configuration

KeyDefaultMeaning
enabledtruefalse mounts nothing
minRetentionYears5scaffold default for the retention check — not a funder rule

Security boundaries

  • No network, no file access: the plan is an in-memory JSON document.
  • No secrets or personal data are read or written by the plugin.

Evaluation

dsh-dmp tests: a real run of the plan/check spec — nine cases covering the ten-section scaffold, retention parsing, a complete plan, missing sections and the open-sharing conflict

Animated: the real verbose pnpm exec vitest run test/plan.spec.ts output over the plan fixtures (no network; re-run 2026-11-21). The pass markers are omitted because the terminal font has no check-mark glyph; the case names and the summary lines are verbatim.

15 tests: scaffold (10 prompt sections), retention parsing (years, Chinese 年, months, unparseable), complete plan accepted, missing sections/retention/backup flagged, open-sharing-of-personal-data conflict, a journal publication not mistaken for open sharing, prompt-only scaffolds not counted as complete, empty dataset fields/contact treated as missing, malformed-plan and retention-override guards, tool schemas, scaffold→check→export end to end, failure branches, package contract.

No benchmark is claimed: these are structural checks on a JSON document, pinned by fixtures.

Known limitations (v0.1)

  • The checks trust the plan's own flags (containsPersonalData, sharing wording); they cannot verify reality.
  • Only English/Chinese cue words for open sharing and de-identification.
  • No funder-specific templates, no export to DOCX/PDF.
  • Retention minimum is a scaffold default, not a funder rule.
  • Scaffold prompts are placeholders: dmp_check treats them as missing until replaced with project text.

License

Apache-2.0. No third-party runtime code.

Plugin correlati