dsh-evolution: Verifiable, Rollback-able Self-Evolution Orchestration for DSH

Introduction

When using DeepSeek Harness (DSH) to let an Agent improve its own runtime, common dilemmas include: experimental changes remaining in the composition but becoming hard to trace; “looks better” lacking repeatable evidence; and the same types of failures recurring across multiple sessions. The community plugin directory SkillHub categorizes ryukeilee/dsh-evolution under admin-security and explicitly states: this is a pre-release of an independent Evolution bundle for DSH, and host code execution during the promotion phase is not a security sandbox. The following introduces what it is, what it can do, and how to install and use it.

What is this

dsh-evolution is published by the maintainer ryukeilee, with the current package version 0.2.0-rc.16 (Release Candidate) and an MIT license. It is an independent DSH bundle: loaded via the official bundle / profile mechanism, it does not fork DSH, does not modify official source code, does not copy files to the official node_modules, and does not patch the official repository.

The core goal is to conduct controlled experiments on the real running Cordis Runtime—propose improvements, activate them temporarily, measure benefits, then roll back or promote them to a persistent plugin with evidence; if an upgrade fails, it can automatically revert to the last known good state. It is distributed as a tarball on GitHub Releases and is not published as an npm package.

Supported DSH hosts (the README states they have passed real installation acceptance testing individually): 0.2.0-rc.2, 0.2.1-alpha.1, 0.2.1-rc.2. Node requirement: ^22.19.0 || >=24.0.0.

Core Features

Controlled Evolution Lifecycle

Nine tools form a closed loop, with the sequence constrained by system prompts. The typical flow is as follows:

evolution_runtime_inspect   Read the real Cordis Runtime
        ↓
evolution_propose           Record why / target / impactScope / successMetrics / risk
        ↓                    Can attach experienceRecall (historical experience)
evolution_trial             Activate temporary Cordis Package via dynamicCordisRunner
        ↓
evolution_measure           Record observations and evaluate promotion gates
evolution_revert            Roll back and verify Runtime signature returns to baseline
  or
evolution_promote           Write to persistent Plugin after owner confirmation, enter canary
        ↓
evolution_canary_observe    Report startup/health/dependency/metrics on deterministic barriers
evolution_history           Bounded domain history; performs experience retrieval when query is provided
evolution_doctor            Model-free health report

Design points (excerpted from README):

  • Does not create a second runtime; Component / Service / Tool / Dispose etc. are owned by Cordis.
  • Promotion must simultaneously satisfy 8 gates (real benefits, measurable evidence, repeatability, regression passing, rollback capability, cleanup evidence, no orphan resources, runtime restored); missing one results in rejection.
  • evolution_promote does not write to production by default: it must explicitly receive confirmation: true, otherwise it only returns “waiting for owner confirmation”.
  • After promotion, it enters canary observation; startup and health are verified across restarts; if a metric regression is reported on a barrier, it triggers an automatic rollback, rolling back only the new candidate.

Does not deploy to production on its own by default

The real gate is owner confirmation, not treating mode as a master switch:

  • mode defaults to advisory; unattended defaults to false. Both appear in policy reports but are not prerequisite switches for whether an autonomous observer can start experiments.
  • An autonomous observer will only start an isolated Trial when configured with matching autonomousStrategies, the number of observations of the same failure pattern reaches patternThreshold (default 3), and the risk is low, among other conditions being met simultaneously. The high risk hard constraint is to block, and the medium hard constraint is to wait for confirmation.
  • Experience retrieval is enabled by default (experienceRecall: true), is read-only, and is triggered by evolution_propose / evolution_history; daily accumulation does not introduce models or polling.

Model-free Diagnostics

evolution_doctor and the out-of-session CLI dsh-evolution-doctor share check items and grading, do not rely on models, do not connect to the internet, and do not upload Evolution data. When the CLI lacks real-time context, some runtime items will report not-evaluated; to probe internal APIs, you need to call evolution_doctor within the session.

Installation and Activation

1. Install DSH

Choose any official recommended method:

npx @deepseek-ai/dsh web
# or from source: pnpm install && pnpm run build

2. Download and verify the plugin tarball

Get the artifact from GitHub Release v0.2.0-rc.16:

RELEASE_URL=https://github.com/ryukeilee/dsh-evolution/releases/download/v0.2.0-rc.16
curl -fL "$RELEASE_URL/dsh-evolution-0.2.0-rc.16.tgz" -o dsh-evolution-0.2.0-rc.16.tgz
curl -fL "$RELEASE_URL/SHA256SUMS" -o SHA256SUMS
curl -fL "$RELEASE_URL/manifest.json" -o manifest.json

# You can also use GitHub CLI (public repo does not require gh auth login first)
gh release download v0.2.0-rc.16 --repo ryukeilee/dsh-evolution \
  --pattern 'dsh-evolution-*.tgz' --pattern 'SHA256SUMS' --pattern 'manifest.json'

sha256sum --check SHA256SUMS          # macOS: shasum -a 256 -c SHA256SUMS

3. Load into profile with the official CLI

The same command is also used for upgrades:

DSH_HOME=/isolated/home dsh plugin --profile web add ./dsh-evolution-0.2.0-rc.16.tgz
DSH_HOME=/isolated/home dsh web --no-open

After installation, the profile’s package.json will list dsh-evolution under dsh.profile.bundles, loaded with the profile, no need to manually mount presets in every session.

Configuration (Optional)

Configuration is passed via profile patch, all items are optional. Common items include:

Config Item Default Value Description
dataRoot $DSH_HOME/storages/evolution Evolution data root
mode "advisory" manual / advisory / autonomous
experienceRecall true false disables on-demand experience retrieval
canaryWindow 2 Number of barriers required for canary
patternThreshold 3 Number of failure pattern observations before triggering autonomous observer
autonomousStrategies Not configured Define target / composition / measure / risk by failure pattern

For the complete table, see Section 5 of the repository README.

Typical Usage

Shortest closed loop within a session

Call tools in lifecycle order within the Agent session; the shortest path recommended by the README:

evolution_runtime_inspect → evolution_propose → evolution_trial
→ evolution_measure → evolution_revert        (Abandon)
                     → evolution_promote → evolution_canary_observe   (Adopt)

When promoting to production, the call to evolution_promote must include confirmation: true.

Command-line diagnostics

Available after installation to the profile:

<profile>/node_modules/.bin/dsh-evolution-doctor \
  --home "$DSH_HOME" [--profile web] [--json]

<profile>/node_modules/.bin/dsh-evolution-doctor --home "$DSH_HOME" --repair [--json]

Exit codes: 0 healthy, 1 degradable issues, 2 blocking issues.

Upgrade, rollback, and uninstall

DSH_HOME=/isolated/home dsh plugin --profile web add ./dsh-evolution-<new>.tgz
DSH_HOME=/isolated/home dsh plugin --profile web add ./dsh-evolution-<old>.tgz
dsh plugin --profile web remove dsh-evolution

The README emphasizes: rolling back to an old plugin package does not automatically roll back promotion compositions already committed as stable; uninstalling does not delete user data.

Applicable Scenarios and Notes

Who it is for: Developers or teams already running Cordis on DSH who need to turn “changing the runtime” into an auditable process—especially when they need to verify in a Trial before promoting, and retain the ability for failure learning and canary rollback.

Security and Permissions (Must Read):

  1. The plugin runs with the current DSH process privileges; you should review the GitHub Source Code and the MIT license yourself before installation.
  2. The README is consistent with the SkillHub introduction: promotion is Host-only and is not a security sandbox; persistent source code is loaded via a cooperative Function(hostCode)() gate, which is a compatibility gate, not an isolated environment, and promotion requires trusted approval.
  3. Relies on some internal or undocumented host interfaces; re-acceptance is required before upgrading DSH, and evolution_doctor will probe item by item rather than pretending to be healthy.
  4. The repository description states there is no npm release, code signing / provenance (SLSA), or SBOM; GitHub Code Scanning has been enabled.

Ecosystem Note: DSH’s philosophy is “everything is a plugin”. SkillHub (directory page) is a community independent site, with no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-evolution advances self-improvement from “hard to revert after changes, conclusions without evidence” to a mechanism chain of Trial → Measurement → Gates → Owner Confirmation → Canary, accompanied by model-free experience retrieval and doctor diagnostics. Currently it is a 0.2.0-rc.16 pre-release with 0 stars on GitHub; before use, please download the Release tarball to verify the hash, and enable it with the understanding that promotion is not a sandbox.

  • Directory Page: https://www.skillhub.cn/plugins/ryukeilee/dsh-evolution
  • Repository: https://github.com/ryukeilee/dsh-evolution
羽毛球分组比赛记分
小程序二维码

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

Xiaoye