dsh-veripipe: Leave a Readable Completion Receipt for Each Conversation Turn

Introduction

In DeepSeek Harness (DSH), agents commonly use todo_write to maintain the session projection todos, representing the current plan and progress. DSH clears this projection on every turn/start: after the next turn begins, reading todos again yields null. If you perform external validation between two turns (e.g., determining “whether the plan is fully complete”), you cannot distinguish “the previous turn was fully completed” from “no todo was ever written / the turn was abandoned midway” — on the projection, both look like “no list”.

Below we introduce the community plugin dsh-veripipe (maintainer zhangyy0423, categorized under “Memory” on SkillHub). It folds the same session event log into a projection that will not be cleared by subsequent turns, and mints a receipt at every turn/end, readable throughout the session’s lifecycle; it also provides a read-only tool veripipe_receipt. The plugin adds no model calls, performs no network access, and writes no extra state into the session.

What Is This

dsh-veripipe is a DSH plugin: it performs deterministic folding over events such as turn/start, todo/write, goal/change, and turn/end, maintains the veripipeReceipts session projection, and registers the read-only tool veripipe_receipt. Each receipt records the todo counts, goal identifier, end reason, and the fail-closed verdict.planComplete determination at the end of that turn.

The repository is not published to npm; the current package version is 0.1.0, license MIT. It is related to the standalone project veripipe but is maintained in a separate repository; it can also be used standalone (without installing veripipe) as a “per-turn completion ledger”.

Core Features

The veripipeReceipts Projection

  • Purely functional folding of the session event log; the plugin itself does not persist state outside the event stream.
  • One receipt is generated at every turn/end, keeping at most the most recent 50.
  • Runs in parallel with the built-in todos projection: the latter is cleared with each new turn, while the former retains history.

Receipt Fields

Field Meaning
turn The turn number corresponding to the receipt (-1 when the event is missing)
endReason The category of the turn/end reason, such as completed, aborted, error; unknown when unreadable
todos Counts { total, completed, inProgress, pending } of the last todo list within the turn; null if none was written
goal The goal { id, phase, revision } at the end of the turn; null if there is no active goal
verdict.planComplete pass / fail / inconclusive (see below)

verdict.planComplete (fail-closed)

The determination is deliberately conservative; anything uncertain never counts as pass:

  1. pass: A non-empty todo list was written in this turn, and every item is completed.
  2. fail: A non-empty list was written, and at least one item is not completed.
  3. inconclusive: No todo was written in this turn, the list is empty, or the todo/write payload is unreadable.

The veripipe_receipt Tool

Read-only; no model calls, no network, no write operations. Returns several recent receipts from the current session (default 1, optional limit, range 1–50, ordered from oldest to newest by time).

Privacy

Receipts store only counts and identifiers: they do not include prompts, todo body text, tool arguments/results, or the goal’s objective text. veripipe_receipt returns only the fields described above.

Installation and Activation

The plugin ships prebuilt artifacts in lib/ with the repository; no prepare build step is needed at install time. @deepseek-ai/* is provided by the host DSH as peer dependencies; do not redundantly declare them as regular dependencies on the plugin side (this would cause @deepseek-ai/dsh-tools to be loaded twice and break tool invocation). The only runtime direct dependency is zod. Requires Node >= 22.

Add the GitHub source under a specified profile (commands from the README):

dsh plugin --profile <your-profile> add github:zhangyy0423/dsh-veripipe

A local directory or a packaged tarball can also be installed:

dsh plugin --profile <your-profile> add ./dsh-veripipe
dsh plugin --profile <your-profile> add ./dsh-veripipe-0.1.0.tgz

The plugin runs under the permissions of the current dsh process. Please review the source code and LICENSE yourself before installing; the community directory SkillHub plugin page has no official affiliation with DeepSeek / High-Flyer (幻方), and is not an official app store.

Typical Usage

When calling veripipe_receipt, you may omit required parameters; the optional limit specifies how many recent receipts to return:

{ "limit": 3 }

Example response structure (field meanings see the README):

{
  "available": 7,
  "returned": 3,
  "receipts": [
    {
      "turn": 5,
      "endReason": "completed",
      "todos": { "total": 3, "completed": 3, "inProgress": 0, "pending": 0 },
      "goal": { "id": "g_abc", "phase": "active", "revision": 2 },
      "verdict": { "planComplete": "pass" }
    }
  ]
}

Before the first turn/end, the tool returns { "available": 0, "returned": 0, "receipts": [] }.

With the steps above, external verifiers or orchestration logic can read, in any subsequent turn, “whether the plan passed fail-closed at the end of a given turn”, without replaying the full event stream or touching private content.

Use Cases and Caveats

Suitable for: integrators who need to retain the “per-turn plan completion state” across turns within a session; scenarios that interface with veripipe-style pipelines and still need to distinguish completion from abandonment after turn/start clears todos; compliance-oriented setups that only want counts and goal ids and do not want todo body text persisted.

Notes:

  • It only reflects the state that can be folded from the event log; turns that never called todo_write will yield inconclusive, which is by design, not a bug.
  • Receipts are capped at 50; earlier turns will not appear in the projection.
  • After modifying src/ during development, you need to run npm run build and commit lib/ (the repository already includes the built artifacts for installation).

Links

dsh-veripipe fills, with a minimal increment, the readability gap of DSH’s built-in todos at turn boundaries: one auditable, fail-closed completion signal per turn, readable by humans or external verifiers while the session is still alive.

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

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

Xiaoye