dsh-plugin-veriscope: Offline Gate Replay and Existing Scoring Threshold Determination

Preface

In RAG or Q&A pipelines, evaluation scripts often already produce item-level scores or VeriScope archives. However, the decision on “whether it can be released externally” still relies on manual table reviews and verbal threshold agreements. When conditions change, it is unclear if yesterday’s “pass” still holds, and there is a lack of a re-verifiable audit trail. DeepSeek Harness (DSH) breaks down capabilities into installable plugins. Below is an introduction to dsh-plugin-veriscope (community category: admin-security) released by the maintainer 4444wjt. It serves strictly as a release gate: consuming existing evaluation results to provide PASS/FAIL/REVIEW verdicts, and generating re-checkable receipts bound to policies and environments. It does not re-score data or call models.

What is this

VeriScope Gate Replay · DSH Plugin (npm package name dsh-plugin-veriscope, current documentation corresponds to 0.6.0). It operates via two parallel channels:

  1. Original VeriScope Path (replay): Replays archives and calls the original gate logic after configuring the upstream Python environment.
  2. B2 Built-in Check (check): Uses Node.js only to perform threshold checks on existing item-level scores. Supports GateArchiveV1 and Ragas records layouts; does not require VeriScope, Python, or pandas installation.

The verdict is tri-state: PASS / FAIL / REVIEW. REVIEW does not automatically convert to PASS; confirmed FAILs are not masked by exceptions. Receipts bind the input, policy, checker, and environment; when conditions change, old conclusions are marked as invalid rather than silently reused.

In addition to the DSH plugin form, the same repository provides an MCP server and CLI (veriscope-check) to facilitate integration with Claude Code, Codex, or hostless CI. The DSH side offers additional capabilities such as bound tasks, batch replay, and export. Refer to the repository documentation for details.

Core Features

No Scoring, Just Gating

The plugin explicitly does not re-evaluate or call models. It only reads your existing archives or scoring JSON, performs threshold and integrity checks according to policy, and writes receipts to the state directory.

B2: Gate Existing Scores (Ragas, etc.) Directly

If you already have scores from Ragas or similar tools, you can export them to JSON, specify metrics and thresholds, and let veriscope_gate_check execute the verdict and save a ReceiptV2. It calculates an equal-weight average for all input records; missing values are neither zero-filled nor skipped. The result is FAIL if the average is substandard or explicit item-level thresholds are violated; it is REVIEW if evidence is missing; it is PASS only if all are complete and meet standards. You must explicitly select GatePolicyV1 or GatePolicyV2 (including row_threshold to intercept cases where “the average passes, but a single item is extreme”).

Original Path: VeriScope Archive Replay

Supports original VeriScope archives, plus B2’s GateArchiveV1 and specified Ragas records layouts; unsupported formats are explicitly rejected. Replay is performed via tools like veriscope_gate_replay, generating ReceiptV1. Environment readiness requires a veriscope_doctor check-up. Note that a passed check-up does not equal a passed gate; an actual replay is still required.

Receipts and Validity

You can use veriscope_gate_status to read-only check if a specific receipt is still valid under the current policy, version, and input summary; veriscope_gate_list lists recent receipts. When task completion needs to be constrained, bound tools can be used: completion is registered only if the bound receipt is currently valid and PASS (see the repository tool table for specific parameters).

DSH Tool Overview

The documentation lists nine tools, including: veriscope_gate_check, veriscope_doctor, veriscope_gate_replay, veriscope_gate_status, veriscope_gate_list, veriscope_gate_batch, veriscope_gate_export, veriscope_gate_bind, etc. The MCP side is a subset of five tools, lacking bind/complete and DSH native result cards; all MCP tools require explicitly setting a valid VERISCOPE_STATE_DIR.

Installation and Activation

Requires Node ≥ 22.19. The DSH entry depends on @deepseek-ai/dsh-tools 0.2.1-alpha.2 (version is validated before loading). There is no settings UI, and .env is not automatically read; paths come from host process environment variables.

Install under a prepared profile (the example profile name in the docs is veriscope-demo):

dsh plugin --profile veriscope-demo add dsh-plugin-veriscope
dsh plugin --profile veriscope-demo list dsh-plugin-veriscope --depth 0

Uninstall:

dsh plugin --profile veriscope-demo remove dsh-plugin-veriscope

For secondary development, install via a local directory (replace the path with the actual source location):

dsh plugin --profile veriscope-demo add 'D:\your-workspace\dsh-plugin-veriscope'

When installing from GitHub, the alternative method provided in the docs is (requires environment variables configured first, see next section):

dsh plugin --profile veriscope-demo add github:4444wjt/dsh-plugin-veriscope

Optional: In <DSH_HOME>/profiles/<name>/cordis.patch.yml, override completionMode (only off or remind) based on existing id. This is used for reminders for unfinished bound tasks and does not promise to globally block chat.

Configuration Essentials

Set a non-empty absolute path in the same terminal where DSH is started, then restart the host:

Environment Variable Usage
VERISCOPE_ROOT Original replay: VeriScope repo root; Windows default D:\RAG_Evaluation_Demo, POSIX must be set explicitly.
VERISCOPE_PYTHON Original replay: Python executable; probes .venv/venv, no PATH fallback.
VERISCOPE_STATE_DIR Receipt and export state root; must be explicitly set to a writable persistent directory for B2 and MCP; the package’s internal .local may be lost upon reinstallation.

If using B2 only, you only need to configure VERISCOPE_STATE_DIR. Original replay also requires VERISCOPE_ROOT and VERISCOPE_PYTHON on first use, along with running the check-up.

Example (PowerShell):

$env:VERISCOPE_ROOT = 'D:\your-workspace\VeriScope'
$env:VERISCOPE_PYTHON = 'D:\your-workspace\VeriScope\venv\Scripts\python.exe'
$env:VERISCOPE_STATE_DIR = 'D:\your-data\veriscope-state'

Upgrade note (since 0.4.0): The current validity of old receipts may enter REVIEW; please back up the complete state directory and original archives before upgrading. Exporting receipts alone is not a complete backup.

Typical Usage

Node Only: Local Trial Run for B2

After setting the state directory, you can use the package’s internal script against the built-in samples:

$env:VERISCOPE_STATE_DIR = 'D:\your-data\veriscope-state'
node scripts/check.mjs --archive examples/builtin/ragas-records.json --policy examples/builtin/policy.json --format ragas-records-v1 --json

After CLI installation, the equivalent command is veriscope-check (see repository for parameters).

Driving Tools in DSH Conversation

Once the environment is configured, you can ask the model to call them sequentially as suggested in the README:

  1. Use veriscope_doctor to check the local environment and explain items that need fixing.
  2. Use VeriScope related tools to check specified evaluation result paths, explaining whether it passed and why (replay or check depending on your data form).
  3. Use veriscope_gate_list to list recent gate receipts and current validity.

You can also ask to check “if the last gate result is still valid now.” Whether the chat automatically selects tools depends on DSH model configuration; you can explicitly write the tool name if needed. B2 example intent:

Use veriscope_gate_check to check D:\data\scores.json, with policy D:\data\policy.json, format ragas-records-v1, and tell me if it passes and the reason.

If it fails, you can use veriscope_gate_export with the share format to generate a local Markdown summary for help (preview before sharing; it is not the receipt itself).

Specifications, policy fields, and samples are in the package’s docs/B2.md, schemas/, and examples/builtin/ (samples are constructed for documentation, not real evaluations).

Applicable Scenarios and Notes

Suitable for: Existing VeriScope or Ragas evaluation outputs where a re-verifiable gate is needed before release; wanting to use a toolchain in DSH sessions to keep receipts, check validity, and export reports; or performing equivalent checks in CI/MCP hosts.

Notes:

  • The plugin runs with the current dsh process permissions. Please review the GitHub source code and the MIT license (see package.json) before installation.
  • B2’s PASS is not equivalent to the original Python gate; it does not prove the correctness of scores or answers, nor does it check records deleted before export.
  • Successful installation does not equal a passed gate; MCP/CLI and DSH have different capability scopes. Acceptance scope is subject to the repository’s docs/acceptance-*.json.
  • The community directory SkillHub Plugin Page is an independent site and has no official affiliation with DeepSeek or High-Flyer.

Conclusion

dsh-plugin-veriscope standardizes the “evaluation done, release undecided” state into a tri-state gate with an audit trail: either replay VeriScope or perform policy checks on existing scores purely under Node.js. For installation commands, environment variables, and tool lists, refer to the repository README and docs/B2.md.

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

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

Xiaoye