DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-source-ledger

d

dsh-source-ledger

Manifest valid

Source-tagged assertion ledger for DeepSeek Harness: inspectable source pointers + reproducible audit sampling.

hasBundlePatch

dsh-source-ledger

npm version License: MIT

Author: jetpan (npm) ↔ jerentpan-lab (GitHub) | npm package | GitHub repo | install from GitHub: dsh plugin --profile web add github:jerentpan-lab/dsh-source-ledger

Decision-grade claims must carry an inspectable source pointer (url / file:line / message id). Claims without one are flagged [no-source] and cannot be verified. source_audit reports the source-tag rate and returns a random sample for independent recomputation.

Motivation: agents drift when the same fact has two executable sources. "Outside the session / without a source, it is not a fact."

Install

dsh plugin --profile web add dsh-source-ledger

Tools

  • source_assert { claim, source?, owner?, recompute? }
  • source_verify { id, note? } — only works when a source exists
  • source_audit { sampleN? } — source rate + random sample
  • source_list { onlyMissingSource? }

Config (0.2.0)

{ "ledgerFile": "~/.dsh/source-ledger.jsonl" }
  • ledgerFile: append-only ledger path (default ~/.dsh/source-ledger.jsonl, env DSH_SOURCE_LEDGER_FILE).
  • Unknown keys / invalid values throw a readable ConfigError.
  • Example: config.example.json. Run npm run verify for tests + pack checks.

Demo

node examples/demo.mjs

Bench

node bench/bench.mjs writes bench/RESULTS.md (this host: 1000 entries+audit p50 ≈ 3.0ms, 10000 ≈ 17.2ms).

Troubleshooting (error table)

SymptomCauseFix
ConfigError ... unknown keytypo/unsupported config keyuse config.example.json
ConfigError ... pointerTypesunknown pointer typeallowed: url, file, file-line, message, commit, stdout
source_assert: claim is requiredempty claimpass a claim
verify: entry ... has no inspectable pointerweak/none sourceassert with a pointer type
source changed since assertfile/url content hash differsre-assert with the new content
source unreachablesource file/url missingrestore source or re-assert
source_verify: id is requiredmissing idpass an entry id
report not writtenbad outFile pathuse an absolute writable path

Verify

npm run verify

License

MIT

Comments

Loading…