williamchen520 / dsh-coding-tool
Human-in-the-loop SDD contract gate for DeepSeek Harness
About this plugin
Written by the registry from verified metadata, not from the README.
dsh-coding-tool is a DSH plugin published from the williamchen520/dsh-coding-tool repository.
Capabilities and topics
SDD Contract Gate
Human-in-the-loop spec → contract → check → approval gate for DeepSeek Harness.
Status: MVP (0.1.0). This plugin never approves, merges, or edits code.
Why
Most "AI coding" tools optimize for producing more code. This plugin optimizes for a smaller, auditable question:
Does the repository still match the spec a human approved?
It is generic: no SciPal paths, no project-specific names, no LLM in the compile/check path.
Tools
| Tool | Purpose |
|---|---|
sdd_init | Create sdd/spec.json, sdd/approval.json, sdd/exceptions.json |
sdd_hash | Return the canonical SHA-256 of the spec for human approval |
sdd_compile | Compile an approved spec into sdd/out/ |
sdd_check | Check approval, findings, and generated-artifact freshness |
sdd_gate | Return PASS / FAIL; never auto-approves or merges |
Quick start
1. sdd_init
2. edit sdd/spec.json
3. sdd_hash
4. put the returned hash into sdd/approval.json
and set approved_by / approved_at
5. sdd_compile
6. sdd_check
7. sdd_gate
approval.json must look like:
{
"schema_version": 1,
"spec_sha256": "<hash from sdd_hash>",
"approved_by": "human",
"approved_at": "2026-11-20"
}
Blank approval is rejected. The plugin does not provide an "approve" tool.
Spec example
{
"schema_version": 1,
"project": "my-app",
"rules": [
{
"id": "repo.required",
"kind": "path.exists",
"severity": "blocking",
"paths": ["README.md"]
},
{
"id": "api.routes.unique",
"kind": "json.unique",
"severity": "blocking",
"file": "architecture.json",
"pointer": "api.endpoints",
"key": "route"
}
]
}
Supported rules (MVP)
path.exists
json.unique
json.required
Unsupported rule kinds fail closed. More adapters are intentionally not added until the core is stable.
Exceptions
{
"schema_version": 1,
"exceptions": [
{
"rule_id": "repo.required",
"target": "LICENSE",
"reason": "vendored fixture",
"expires_on": "2026-12-31"
}
]
}
Targets are exact; wildcards and expired exceptions fail.
Output
sdd/out/manifest.json
sdd/out/checks.json
sdd/out/coverage.json
sdd/out/report.md
manifest.json is deterministic: same spec + same repository -> same bytes.
Battle-tested in a real system
This plugin was extracted from SciPal, an auditable biomedical RAG platform, then generalized so it no longer contains SciPal paths, specs, or data.
Reference implementation:
- https://github.com/williamchen520/scipal-public
- 13,276 papers in the private evaluation corpus; 316 routes; 1,496 tests
- 50-question internal study + 300-claim SciFact sanity check
The plugin is independent and MIT-licensed; SciPal's public code snapshot is AGPL.
Safety boundary
no LLM in compile/check
no shell command execution in MVP
no network
no secret reading
no auto-approval
no auto-merge
no project-specific paths
Development
node --test test/*.test.js
For a local DSH bundle, install the directory through the DSH Plugin Manager
(install_bundle with this absolute package directory). Then call
sdd_init from the workspace.
Marketplace
See MARKETPLACE.md for the listing copy, short description, and launch notes.
Add the index source in DSH:
https://raw.githubusercontent.com/williamchen520/dsh-coding-tool/main/market/index.json
License
MIT. The public SciPal snapshot is AGPL; this plugin is independent and contains no SciPal code or data.
Badge
Listed here? Link back with this badge — paste the snippet into your repository README.
[](https://dsh-plugin.com/plugins/williamchen520/dsh-coding-tool)