Preface¶
When running long-horizon tasks in DeepSeek Harness (DSH), a common failure mode is: the executing agent claims a step is complete, this claim enters the conversation transcript, and the next round proceeds based on this unverified premise. Downstream components cannot distinguish between “verified steps” and “optimistic self-reporting,” leading to errors that compound layer by layer. The final answer may appear confident yet have long since deviated from the facts.
The community plugin dsh-verified-progress (maintainer lion231226, catalog category admin-security) targets this specific problem: it maintains a verified-progress ledger for long-running DSH work—an independent verifier provides a structured verdict for each claimed step, and only rounds satisfying admission rules are recorded as progress. If the workspace is modified during the verification process, fingerprint comparison invalidates the verdict, and it can never be promoted to progress.
What is this¶
dsh-verified-progress is a plugin package in the DSH ecosystem (npm name dsh-verified-progress, version 0.3.1 in current materials, MIT license). It does not treat “please verify read-only” as the sole safeguard; instead, it takes fingerprint snapshots of the workspace before and after each verification episode (file size, mtime, and SHA-256 within a hash cap), replacing simple reliance on tool filtering or prompt constraints with detection.
The flow can be summarized as:
claim ──▶ independent verification ──▶ verdict
│
complete + clean + aligned ──▶ ledger (progress)
│
anything else ──▶ ledger (evidence only)
Admission rules are enforced in code, not just written in prompts: when integrity === "violation" || contract !== "aligned", status cannot be complete. Undeclared integrity is conservatively treated as suspect and will not default to clean.
Core Features¶
1. Independent Verification, Replacing Self-Reported Progress¶
The verifier is a sub-agent with no conversation context inheritance. It views the workspace with a read-only toolset and provides three lines of control fields in its response:
Status: complete | incomplete | blocked
Integrity: clean | suspect | violation
Contract audit: aligned | unknown | needs_revision | invalid
Only when the verdict is complete, clean, and aligned does the step enter the ledger in the sense of “progress”; rejected rounds remain in the ledger as evidence and are not promoted to progress.
2. Persistent Verified-Progress Ledger¶
Accepted steps are appended to ledger.jsonl (one JSON object per line, fsync after each append); state.json provides a last-wins projection. Even when the process crashes, context is compacted, or a new session reopens the same run, it is still queryable: what has been verified, why something was rejected, and what remains. Rejected rounds are retained as evidence, allowing subsequent rounds to see claims that have already failed.
3. Workspace Mutation Detection (Fingerprint Guard)¶
Fingerprint comparisons are performed on files within the declared scope before and after verification. If the workspace changes during the verification episode, that round is marked as blocked / violation. Regardless of how clean the verification report reads, it cannot be promoted to progress—because a verifier that writes files is not a neutral witness and may “modify first, report later”; fingerprint comparison does not rely on trust in the verifier.
4. Tools Exposed by the Plugin¶
| Tool | Purpose |
|---|---|
verified_progress_verify |
Verify a step claim against the workspace and write the verdict to the ledger |
verified_progress_ledger |
Read back verified progress, rejected claims, and remaining items |
verified_progress_state |
Current run state: verified rounds, pending claims, open items |
guard_scope: Declared Fingerprint Root¶
verified_progress_verify must be used with guard_scope: a workspace-relative path or glob; non-glob prefixes become the fingerprint root. Example:
verified_progress_verify claim="the parser handles CRLF input"
guard_scope="src/parser/**"
This is not an optional decoration. If fingerprinting is done on the entire workspace root, in a desktop profile, the root directory might be the harness main directory. sessions/**, storages/**, etc., are continuously written by the session itself, causing every round to look like “the workspace was mutated” and resulting in false positives. Therefore:
- Paths must resolve inside the workspace; absolute paths and
..will be rejected; - When the workspace is the harness main directory, a scope must be provided; simply excluding harness-owned directories like
sessions,storages,logs,telemetry,cache,profilesat the root level is insufficient (nestedsessions/inside projects can still be guarded); - The output prints
Fingerprinted: <path>to avoid ambiguity in the verdict scope.
Installation and Enablement¶
Choose one of the installation methods in the README based on your environment. Without a registry or git, the tarball is the universal default:
dsh plugin --profile web add \
https://github.com/lion231226/dsh-verified-progress/releases/latest/download/dsh-verified-progress.tgz
Once the package is published, it can also be installed from the registry:
dsh plugin --profile web add dsh-verified-progress
If git is installed locally, you can install from the repository address:
dsh plugin --profile web add github:lion231226/dsh-verified-progress
If git is not installed, using the github: format may result in an error due to git ls-remote failure, which is easily misdiagnosed as a corrupted plugin; the tarball uses HTTPS and does not depend on git.
After installation, a harness restart is required: failed-to-activate plugins are not automatically retried, and the module cache retains the old version until the process restarts. The package is pure ESM, has no runtime dependencies, and requires no additional build.
Environment Requirements (from package.json): Node >= 22, DSH >= 0.2.0-rc.2; peer dependencies include @deepseek-ai/cordis and other DSH-related packages.
Typical Usage¶
- Install the plugin and restart the harness.
- Call
verified_progress_verifyfor a step completion claim, passing the natural languageclaimandguard_scope(pointing to the project path you actually want to guard, not the entire harness state tree). - Determine whether the step enters progress based on the returned three lines of control fields and fingerprint results; use
verified_progress_ledgerorverified_progress_statewhen summarizing.
The ledger files are not in the project directory, but in the harness state directory:
<state>/verified-progress/runs/<runId>/ledger.jsonl
<state>/verified-progress/runs/<runId>/state.json
If <runId> has a session id, it is taken from the session id; otherwise, it is derived from the working directory hash. Reopening the same session corresponds to the same run.
Applicable Scenarios and Notes¶
Suitable for: Multi-round, long-horizon DSH tasks where you need to answer “what has been independently verified, what was rejected, and what is missing” even after a crash, compaction, or new session; teams willing to trade extra tokens for a verification episode per step.
Plugin not necessary: Single-round, very short tasks—verification costs may exceed the benefits.
Design Boundaries (explicitly stated in the README):
- The verifier is an independent context sub-agent, not an independent OS process; it still shares the harness permission domain with the executor. Fingerprint detection makes violations discoverable, rather than physically preventing disk writes.
- The mutation guard is a correctness tool, not a security boundary: it does not prevent local attackers, is not a sandbox, and paths not included in the snapshot are not compared.
- Large files exceeding the hash cap are only compared by size/mtime; the snapshot will indicate an evidence gap rather than pretending to have performed content hashing.
- Every verification consumes tokens.
The plugin runs with the permissions of the current dsh process; before installation, please review the GitHub repository source code and MIT license to ensure compliance with your requirements. The DSH community plugin catalog (such as SkillHub) is an independent site and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-verified-progress implements “independent verification + ledger” for LongHorizon loops in the form of a DSH plugin: claims are adjudicated by an independent verifier, the fingerprint guard vetoes rounds where the workspace was modified during verification, and the ledger makes progress and evidence traceable after session interruption.
- Catalog Page: https://www.skillhub.cn/plugins/lion231226/dsh-verified-progress
- GitHub: https://github.com/lion231226/dsh-verified-progress