dsh-ship-receipt: Generating Shareable Delivery Receipts for DeepSeek Harness

Preface

After finishing a round of development with an agent in DeepSeek Harness (DSH), you often need to hand-write a summary at wrap-up: the current branch and commit, whether tests and builds passed, the dimensions and checksums of key screenshots, and whether secrets were scanned before pushing. This kind of text can err in two directions, and both are hard to distinguish in wording—writing too little leaves out commands and exit codes, so readers can only take your word for it; writing too much turns “passed locally” into “fully validated in production.” The community already has real-time panels for personal use (e.g., unpacking local sessions to view progress, or checking API usage in the UI), but a delivery receipt meant to be shared publicly with strict evidence partitioning is uncommon in the ecosystem. dsh-ship-receipt, released by maintainer dingchenhui0618-arch and categorized as a workflow, aims to generate a public delivery receipt at project wrap-up: things that can be measured are measured by the plugin itself, things that can only be reported verbally are categorized separately, and claims without evidence keep only the label with an empty body.

What Is This

dsh-ship-receipt is a DSH plugin that, at the wrap-up stage, aggregates branch and commit, sizes and sha256 of key artifacts, conclusions from three pre-push checks, and your specified test and build results, strictly divided into three sections: Verified, Local Only, and Unverified. It does not generate fill-in templates, but instead tries to leave verifiable facts through read-only git, file reads, and local command execution; unverified entries show only the label and an explicit empty slot, without printing confident wording as conclusions.

Core Feature: Which Section Evidence Falls Into

Below, each block of content is explained by “who provides the evidence” in terms of which section it falls into (consistent with the README table).

Content Source Section
Branch / commit / working tree / comparison with upstream Read-only git executed by the plugin itself Verified
Byte size, sha256, PNG width/height of key artifacts Read and computed by the plugin Verified
Three pre-push checks (secret scan, .gitignore review, removal of irrelevant files) Run by the plugin itself Verified
Commands in checks (default run: true) Executed by the plugin, recording exit code and output Verified
exitCode / output you provide when run: false Reported only, not executed by the plugin Local Only
Claims in claims No evidence the plugin can reference Unverified

Hard rule: The detail of unverified entries is discarded; the page keeps only the label and an empty slot (e.g., “(no evidence, left blank)”). This is a deliberate design to avoid printing sentences resembling conclusions next to gray badges.

Things the plugin measures or checks include: branch, commit, commit message, whether the working tree is clean, origin, ahead/behind relative to upstream; artifact byte size, first 16 characters of sha256, IHDR dimensions of PNGs; secret scan against git-tracked files (skipping binaries and files over 2MB); existence of .gitignore and number of rules, suspicious credential paths in tracked files; temporary files or large files over 5MB in tracked files. The workflow does not connect to the network and does not upload anything; receipts are written to $DSH_HOME/ship-receipt/, not into the project directory.

Installation and Activation

Installation follows the README: use dsh plugin add pointing to the plugin directory (not an install string concatenated from the repo name).

# npm-based CLI-managed profile
dsh plugin --profile <name> add <plugin directory>

# Desktop: the desktop profile is exclusive to the Electron app, and the npm-based CLI will be refused—
#   error: profile "desktop" is managed exclusively by the Electron application
# You must use the CLI bundled with the app (under app resources/runtime/cli/bin/dsh):
"<app>/resources/runtime/cli/bin/dsh" plugin --profile desktop add <plugin directory>

After installation, you need to restart the app once (the host side must restart the process for plugins to load). After restart, a “Delivery Receipt” tab appears in the conversation view, and a ship_receipt tool becomes available on the agent side. If webServer.register fails, the page and tab may not appear, but the ship_receipt tool will still work.

Typical Usage

In the conversation, the agent calls ship_receipt, passing the project directory, optional check commands, artifact paths, and claims without evidence. The README example is as follows.

ship_receipt(
  dir: "D:\\Projects\\my-thing",
  checks: [
    { label: "Tests", command: "node --test" },
    { label: "Build", command: "node scripts/build.mjs" },
    { label: "Remote CI", command: "npm test", run: false, exitCode: 0, output: "all green" }
  ],
  artifacts: ["docs/screenshot-1.png"],
  claims: [{ label: "Production validation", statement: "Production environment has been fully validated." }]
)

Key points about parameters:

Parameter Required Description
dir Yes Project directory for which to produce the receipt
checks No { label, command, run? }; run defaults to true, the plugin actually executes and records exit code, output, and timeout
artifacts No Files whose byte size and sha256 should be measured; those declared but not found are listed separately as findings
claims No Claims without evidence, placed in the unverified section with no body shown

Generated results can be viewed via HTTP (routes registered by the plugin):

GET /dsh-ship-receipt               Statistics, the latest receipt, history
GET /dsh-ship-receipt/view/<id>     Self-contained receipt page
GET /dsh-ship-receipt/receipt/<id>  Receipt JSON

Data directories default to:

Path Content
$DSH_HOME/ship-receipt/runs/<id>/index.html Self-contained HTML, archivable, forwardable
$DSH_HOME/ship-receipt/runs/<id>/receipt.json Receipt JSON

apply(ctx, config) can override: dataDir (default $DSH_HOME/ship-receipt), timeoutMs (default 180000), maxFileBytes (default 8MB).

Use Cases and Caveats

Suitable for teams or individuals who, at the wrap-up of a DSH session, need to separate “what can be proven” from “what can only be verbalized,” and generate a forwardable one-page receipt. Concurrent receipt generation in the same repository is serialized (isConcurrencySafe is false) to avoid competing for the same test run and artifact directory.

Security and permissions: Commands in checks are actually executed by default, with the same permissions as the current DSH process user; this is exactly the basis on which “tests passed” can enter the verified section. Each item can be disabled from execution with run: false, recording only the exit code and output you provide (falling into Local Only). Before installation, you should read the source code and the MIT license yourself, confirming that commands and scan scope comply with your environment policy. The plugin only performs read-only git, local file reads, and local execution of checks you declare; it does not upload data.

If git is unavailable or the directory is not a repository, the whole thing will not fail; it will be written into the receipt as a measurement result. Commands have a default timeout of 180 seconds; on timeout they are recorded as killed, with captured output preserved.

Conclusion

dsh-ship-receipt turns wrap-up reporting from an easily overstepping or evidence-deficient piece of text into a delivery receipt partitioned by source: things that can be measured are recorded as raw results by the plugin, and things that cannot be measured are explicitly marked as Local Only or unverified empty slots. The community catalog (SkillHub) and the GitHub repository are independent of each other; the catalog site is not an official DeepSeek / High-Flyer app store. Installation and details follow the repository README.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye