return054/dsh-deliver-check ↗★ 0

dsh-deliver-check

Deterministic deliver pre-flight gate for AI code changes; scans debug leftovers, TODO markers, not-implemented throws, credentials, placeholders; exit-code verdict

Package
dsh-deliver-check
Compatibility
Unverified
Harness peer range
*
Version
0.1.0
License
MIT
Last updated
Nov 5, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:return054/dsh-deliver-check

dsh-deliver-check

DSH (DeepSeek Harness) plugin that exposes a deterministic deliver pre-flight gate for AI code changes as the deliver_check tool.

It scans AI-generated code for delivery blockers — debug leftovers (console.log / debugger / print / pdb), TODO/FIXME markers, not-implemented throws, hardcoded credentials, and placeholder text — and issues a mechanical exit-code verdict the model may only relay, never re-interpret: 0 = PASS, 1 = FAIL, 2 = UNVERIFIED.

Install

dsh plugin add dsh-deliver-check

Other channels: dsh plugin add github:/ (pure JS, no build step) or dsh plugin add ./dsh-deliver-check-.tgz.

Tool: deliver_check

ParameterTypeRequiredDescription
projectDirstringyesAbsolute path of the project root to scan (script runs with cwd set here).
pathsstring[]noExplicit file paths (relative to projectDir) to scan instead of git changes.
stagedbooleannoOnly scan git-staged files (default: all uncommitted changes incl. untracked).
allowstringnoCase-insensitive regex; lines matching it are exempted (e.g. logger\.log).
offlinebooleannoOffline mode: built-in free rules only, no network request for the cloud rule pack.

Returns the script's raw stdout/stderr followed by a final EXIT CODE: N line.

Exit codes

CodeVerdictMeaning
0PASSZero delivery blockers in scanned files — safe to deliver.
1FAILAt least one blocker. Fix every reported line, then re-run until exit 0.
2UNVERIFIEDCannot judge (no checkable files, or paid cloud rules not obtained). Never treat as PASS.

Rules & payment

  • Free tier (built-in, offline): debug leftovers + TODO markers for the JS/TS family and Python.
  • Cloud rule pack (paid): not-implemented throws, hardcoded credentials, placeholders (needed for JS/TS + Python too), plus full debug/throw signatures for Go/Rust/Java/Kotlin/C#/PHP/Ruby. Billed per use at ¥0.01 via Alipay 402 payment (the A2M HTTP 402 protocol); results are cached for 7 days so no repeated billing within TTL. Rule packs are Ed25519-signed and verified client-side.
  • When the tool output contains a 402 / [payment-required] section, the model must relay the payment instructions to the user verbatim — never bypass or simulate payment.

Publish

Tag push auto-publishes to npm (requires NPM_TOKEN, see .github/workflows/publish.yml):

npm version patch && git push --follow-tags