DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

jerentpan-lab /

jerentpan-lab/dsh-source-ledger

Verified

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

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@00d7f44e

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)

Symptom Cause Fix
ConfigError ... unknown key typo/unsupported config key use config.example.json
ConfigError ... pointerTypes unknown pointer type allowed: url, file, file-line, message, commit, stdout
source_assert: claim is required empty claim pass a claim
verify: entry ... has no inspectable pointer weak/none source assert with a pointer type
source changed since assert file/url content hash differs re-assert with the new content
source unreachable source file/url missing restore source or re-assert
source_verify: id is required missing id pass an entry id
report not written bad outFile path use an absolute writable path

Verify

npm run verify

License

MIT

—/ 5

No ratings yet

Verified DSH bundle

Commit 00d7f44eb0cf

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout