DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-repro-audit

d

dsh-repro-audit

Identified

Reproducibility evidence for DeepSeek Harness: a bounded read-only scan records the git commit and dirty state, dependency lockfiles, environment pins, input-data hashes, figures, notebooks, explicit

dsh-repro-audit: three real benchmark cases — repro-0001 reproducible with 0 gaps, repro-0002 partial with dirty_worktree and no_seed, repro-0008 with changed data/input.csv as drift; on the right the ten gap codes and the three drift findings, below the note that a manifest proves bytes existed, not that the analysis is correct

dsh-repro-audit

当前版本 0.1.6。

Would someone else be able to reproduce this analysis — and has anything drifted since you recorded it?

A bounded, read-only scan that records the commit, lockfiles, environment, data hashes, figures, seeds and run commands; a drift check against that record; and a report card you can hand to a reviewer.

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

License Node


What it does

  • repro_manifest scans a workspace project and records: git commit + dirty state, dependency lockfiles, environment pins (.nvmrc, .python-version, pyproject.toml, Dockerfile…), input-data hashes, figure hashes, notebooks, explicit random seeds (random_state, np.random.seed, set.seed, torch.manual_seed…) and runnable commands (package.json scripts, Makefile targets, run/reproduce/analysis entry scripts).
  • repro_check re-scans and compares: an artifact that changed or disappeared is a finding — so a data file edited after the manifest is caught.
  • repro_card renders the evidence as Markdown + SARIF 2.1.0, with every gap, its severity and a concrete suggestion.

Levels: reproducible (no error/warning gap), partial (warnings only), not_reproducible (any error gap or drift), unknown (reserved).

dsh-repro-audit structure: a read-only bounded scan collects git commit and dirty state, lockfiles, environment pins, data and figure hashes, seeds and run commands; the manifest records artifacts and gaps and derives a level; a re-scan compares against the manifest for changed, missing or added artifacts and renders a Markdown + SARIF report card; the verdict stays with the reviewer

Structure: scan → record → check; gaps[] and level are the two outputs, and a changed or missing artifact is a drift finding rather than a failure of the analysis. The token labels inside the diagram are the real tool, gap and field names, so the same picture serves all five languages.

What it does not do

  • No execution. Project code is never run; the only subprocesses are git rev-parse and git status, with a timeout and no shell.
  • No upload, no build. It does not fetch data, install dependencies, or reproduce figures.
  • No truth claim. A manifest proves these bytes existed; it does not prove the analysis is correct or complete.
  • No UI. JSON + Markdown + SARIF only.

Gap codes

CodeSeverityMeaning
no_git_commiterrornot a git repo, or no commit
no_lockfileerrorno dependency lockfile recorded
no_run_commanderrorno entry point found
dirty_worktreewarninguncommitted changes; the commit does not describe the files
no_seedwarningscripts exist but no seed literal was found
no_datawarningno input data file in the project
no_environmentwarningno runtime/environment pin
unhashed_datawarninga data file exceeded the hash cap
no_figuresinfono figure/table output
scan_truncatedwarningthe file cap was reached

Error gaps make the level not_reproducible; warnings make it partial.

Tools

repro_manifest

{ path? } → { ok, manifest, recordPath }. The record is a valid REP ResearchRecord whose artifacts are the code/env/data/seed/command/figure/notebook evidence.

repro_check

{ manifest | manifestPath, path? } → { ok, drift }. manifestPath is workspace-relative; path is the project to re-scan (defaults to the workspace root).

repro_card

{ manifest, drift? } → { ok, markdown, sarif }.

Error codes

INVALID_INPUT · NOT_FOUND · PATH_ESCAPE · NOT_A_DIRECTORY · INVALID_MANIFEST · STORE_ERROR

Compatibility & install

DeepSeek Harnessdsh-v0.2.3-alpha.1 (verified 2026-11-22); 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-repro-audit
dsh --profile <name> --dump-config | grep dsh-repro-audit

Configuration

KeyDefaultMeaning
enabledtruefalse mounts nothing
root.repro-auditmanifest + record root
workspaceRootprocess.cwd()project paths must resolve inside it
maxFiles2000files visited per scan (over-limit reported)
maxDepth6directory depth
maxFileBytes8388608per-file hash cap (larger data is recorded unhashed + gap)

Ignored directories: .git, node_modules, .venv, dist, build, target, __pycache__, coverage, .next, caches, .repro-audit, plus the configured store root when it is inside the project.

Security boundaries

  • The project is read-only; records go under root. A store that lives inside the scanned tree (the default .repro-audit/) is excluded from the scan, so the manifest cannot include its own records.
  • Symlinks inside the project are reported and skipped, never followed.
  • Hash caps prevent memory blow-ups; the file cap is reported, not ignored.
  • git runs with fixed read-only arguments, a 5 s timeout and windowsHide; no shell. Repository-local fsmonitor hooks are disabled (-c core.fsmonitor=false) and GIT_OPTIONAL_LOCKS=0 keeps git status from refreshing/writing the index; inherited GIT_* variables are stripped so git -C <root> cannot be redirected to another repository.

Evaluation

dsh-repro-audit benchmark: a real run over the frozen 10-case synthetic reproducibility dataset — 10/10 cases pass, level accuracy 10/10, gap precision and recall 1.000, drift detection and exact drift finding 3/3

Animated: the benchmark adapter's real stdout — one fresh mkdtemp per recipe case, isolated git fixtures, drift applied after the manifest, no network (re-run 2026-11-21).

27 tests: scanning (lockfiles/data/figures/seeds/commands/runtimes, node_modules skipped, symlinks skipped but reported, project config not counted as data, lowercase .r scripts, file cap, own store excluded (including through symlinked/short workspace paths), fsmonitor hook not executed, inherited GIT_* ignored), manifest levels (clean → reproducible, no seed → partial, no git → not_reproducible, dirty → partial, empty project gap set), drift (changed data + missing figure, clean re-check), runtime (valid REP record, inline manifest, saved manifest with project path, malformed saved manifests rejected with INVALID_MANIFEST, symlinked manifest escape rejected, path escape), tools (schemas, manifest→check→card end-to-end, failure branch, malformed card input), package contract.

Synthetic reproducibility benchmark

A separate 10-case, deterministic synthetic benchmark (dataset repro v0.1.0) lives in the sibling dsh-research-bench repository under data/repro; it is not vendored into this package. Each case is a recipe — a relative-path→content file map, a git mode (none, commit, dirty, commit-then-modify) and a drift operation (none, modify:<path>, delete:<path>). The adapter materialises the recipe in a fresh mkdtemp, records a manifest with ReproAuditRuntime.manifest, applies the drift to the tree, then calls ReproAuditRuntime.check. Expected levels and gap-code sets are hand-authored from the recipe and the documented gap rules; the adapter never derives an expected value from plugin output.

Coverage: 1 complete clean project; 2 evidence gaps (missing seed, missing lockfile); 2 runtime gaps (no run command, no env pin); 2 git gaps (no repository, dirty worktree); 3 drift cases (recorded data modified, recorded data deleted, recorded lockfile modified). The missing-seed fixture also carries a tracked edit after the commit, so it exercises two warnings at once. All four git modes and all three drift modes are represented.

Measured with the commands below (Node 24.22.1, git 2.43.0):

MetricResult
Level accuracy (manifest, record time)10/10 (100%)
Gap precision / recall (micro, exact code sets)1.000 / 1.000
Exact gap-set match10/10
Drift detection (findings non-empty)3/3
Exact drift finding (status + path)3/3
No false positives on clean cases7/7
Cases passed10/10
pnpm run build
pnpm run bench:repro        # reads ../dsh-research-bench/data/repro (BENCH_DIR / --data override)

It writes bench/results-repro.json and bench/results-repro.md (no timestamps; re-running on the same dataset is byte-identical). Git is a hard prerequisite: the adapter exits with code 2 if git is not on PATH. Fixture repositories use the fixed identity fixture@example.invalid, an empty global git config and a temporary store outside the project, so host git settings and the recorded store cannot change the labels.

Unit-test sample matrix (the same scenarios are also covered by unit tests):

ScenarioExpectedCovered
complete project, clean treereproducible, 0 gapstest + benchmark
no seedpartial, no_seedtest + benchmark
no gitnot_reproducible, no_git_committest + benchmark
uncommitted changepartial, dirty_worktreetest + benchmark
data edited after manifestdrift changed, not_reproducibletest + benchmark
figure deleteddrift missingtest
data deleted after manifestdrift missing, not_reproduciblebenchmark
lockfile edited after manifestdrift changed, not_reproduciblebenchmark
just-recorded manifestdrift emptytest + benchmark

Known limitations (v0.1)

  • Metadata-level only: it does not verify that the recorded command actually reproduces the figures.
  • Seeds are found by literal patterns; seeds injected via config files or environment variables are missed.
  • Figures are hashed but not linked to the script that produced them (no provenance graph yet).
  • Large data files are recorded unhashed (with a gap) rather than streamed.
  • No .gitignore awareness: ignored-but-present files are still hashed if they are data/figure/extensions.
  • The repro benchmark is synthetic and small (10 recipe cases): it measures scanner-level gap and drift rules, not real-world reproducibility. A 1.0 score is a regression baseline, not an unbiased estimate of accuracy on real repositories.
  • The benchmark needs git; on a machine without it bench:repro exits with code 2 and writes no results.

License

Apache-2.0. No third-party runtime code.

Comments

Loading…

Similar plugins

dsh-reprolab

by yuttfu

dsh-reprolab — a deterministic bug-proof executor for DeepSeek Harness: frozen repro tests, RED/GREEN/REGRESSION gates, and replayable evidence. Complements session-level discipline plugins such as ds

Manifest valid

★ 0

MIT

TypeScript

Aug 16, 2026

dsh plugin --profile web add dsh-reprolab

by PerryLink

Notebook reproducibility capture for DeepSeek Harness: reads .ipynb JSON without executing it, reports kernel/language, code vs markdown cells, execution order (out-of-order and never-run cells), impo

Tools & CapabilitiesManifest valid

★ 0

Apache-2.0

TypeScript

Nov 13, 2026

dsh plugin --profile web add dsh-notebook-capture

by HaoyueQin

Review tab for DeepSeek Harness sessions: workspace changes versus HEAD or any two refs as a filterable file tree with side-by-side diffs, a lane commit graph with blame and file history, three-scope

Development & InfrastructureTerminal & ClientsManifest valid

★ 3

↓ 347/wk

MIT

TypeScript

Sep 29, 2026

dsh plugin --profile web add dsh-git-review

by JimChen-g

Evidence-first frontier AI radar and reproducibility gate for DeepSeek Harness

Workflow & AutomationDevelopment & InfrastructureManifest valid

★ 1

↓ 180/wk

MIT

JavaScript

Aug 18, 2026

dsh plugin --profile web add dsh-frontier-repro

by zirscard

Principle-library auditor for DeepSeek Harness: one principles_audit tool that checks a principle library for principle_id collisions, legacy ids, missing causal statements, boundaries, counter-exampl

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Oct 20, 2026

dsh plugin --profile web add dsh-principles-audit

Read-only repository fact scanner kernel for DSH analysis plugins: deterministic probe / file index / modules / dependencies / entry points / symbols / graphs and git facts over a stable JSON schema (

Development & InfrastructureManifest valid

★ 0

dsh plugin --profile web add dsh-repo-scanner