dsh-freeze: Fingerprint Locking for DeepSeek Harness Configurations

Introduction

In DeepSeek Harness (DSH), what actually runs during a session depends not only on the plugins installed but also on the dependency set on the profile, the ordered bundle composition, the pnpm-lock.yaml parsing results, and the user-side cordis.patch.yml patch layer. Pre-installation scanning can answer “is this package safe to install,” but it rarely answers directly: Is the agent composition starting today byte-for-byte identical to the set that was audited and tested at that time?

The community plugin dsh-freeze (maintainer zhengqiuyang, categorized under admin-security) targets this exact problem: it computes a deterministic fingerprint of the started profile, establishes a baseline, and compares it at every startup. If the composition drifts, it issues a clear warning or refuses to boot entirely in strict mode.

What is this?

dsh-freeze is a Hermetic composition lock for DSH. As positioned in the README, it fingerprints the “started profile”—installed dependencies (sorted by name), ordered bundle composition, pnpm lockfile hash, and user patch layer—writes this to a baseline, and compares it at every boot. It does not call an LLM in the trust path.

Compared to other plugins that share the “auditable agent runtime surface” philosophy, the README lists it alongside mcp-test (what the agent can call) and prompt-drift (what the agent is told); freeze focuses on “what exactly is running.”

Core Features

Below is an introduction to the changes the plugin monitors and its behavior modes.

Fingerprint Coverage

The README uses a table to explain the fields that trigger warnings:

Field Meaning
dependencies Dependencies are added, removed, or their pointers change
bundles The ordered composition changes
pnpm-lock The resolved version shifts (e.g., upgrades)
cordis.patch.yml User-layer patch changes

Startup Comparison

  1. First run or baseline missing: The current composition fingerprint is written to a baseline file (see config for default path).
  2. Subsequent boots: Read the current profile state and compare it against the baseline.
  3. Drift detection: If drift exists, the session explicitly prompts that the composition differs from the baseline in default mode; if strict: true, the entire boot fails, suitable for “frozen” postures like CI.

The README explains that dsh --dump-config is byte-stable across runs, and package.json / pnpm-lock.yaml / cordis.patch.yml suffice as the source of truth for composition, making the deterministic fingerprint valid by design.

Division of Labor with Supply Chain Scanning

The material (checked 2026-10-12) mentions that the installation side already has various scanning and read-only plugin ledgers (like dsh-harbor) that answer “is the package suitable for installation.” dsh-freeze complements this with the runtime state: does the currently running composition equal the set that was once audited?

Installation and Activation

The repository ships with a pre-built lib/, so no build steps or allowBuilds authorization are required when installing via dsh plugin add from GitHub.

Execute the official installation command on the target profile:

dsh plugin --profile default add github:zhengqiuyang/dsh-freeze

Compatibility (from README):

  • DSH: Validated on the 0.2.x line (source snapshot 0.2.1-alpha.2); any profile can install via dsh plugin add.
  • Node: >= 20 (CI matrix includes Node 20/22/24, Ubuntu, and Windows).

Enable and adjust behavior in the profile configuration, for example:

- id: dsh-freeze
  name: dsh-freeze
  config:
    baselinePath: .dsh-freeze/baseline.json
    strict: false          # true: drift fails the boot (CI posture)
    profile: ""            # '' auto-detects from argv (--profile, else 'web')

Note: The baseline is written to the session’s working directory by default; if used in CI, baselinePath should point to a persistent location and be included in version control.

Typical Usage

Local Development: Warning First, Don’t Block Startup

  1. Install the plugin and start DSH normally to let the plugin generate or update the baseline (path determined by baselinePath).
  2. After reviewing and approving the current composition, commit .dsh-freeze/baseline.json (or your configured path) to the repository as the reference for the “audited composition.”
  3. Keep strict: false. If someone later changes dependencies, bundles, upgrades the lockfile, or modifies patches, a dsh-freeze drift prompt will appear at startup for manual handling.

CI: Strict Mode Refuses Drifted Startups

  1. Install the plugin on the profile used in CI as well.
  2. Place the audited baseline file in the repository and configure baselinePath to point to it.
  3. Set strict: true so that the boot fails directly if the composition differs from the baseline, equivalent to the --frozen posture mentioned in the README.

Verification with a disposable profile in the material (2026-10-19): add on a new profile completed in about 30 seconds; boot logs showed [dsh-freeze] active: …; after remove dsh-freeze, dependencies and bundles were restored.

Use Cases and Notes

Who is this for?

  • DSH users who need to pin “audited agent compositions” in teams or CI to avoid silent drift.
  • Scenarios already using installation-time scanning / harbor ledgers but still wanting to verify the runtime composition at every startup.

Things to note before use

  • The plugin runs with the permissions of the current DSH process; before installation, review the GitHub repository source code and the MIT license (package.json version 0.1.0) yourself.
  • The baseline reflects the composition “at the moment you wrote the baseline”; legitimate upgrades to dependencies, lockfiles, or patches require updating the baseline and re-auditing.
  • Kill criteria in the README: If DSH officially provides an equivalent profile pinning (like --frozen boot), this plugin may stop at its last available version and leave a postmortem here—pay attention to upstream developments when selecting.

The DSH community plugin directory is an independent site SkillHub, with no official affiliation to DeepSeek / High-Flyer; installation and configuration are subject to the repository README.

Conclusion

dsh-freeze uses profile-level fingerprinting to bind “the composition booting today” with “the composition in the baseline”: drift becomes visible, and fail-closed is possible when necessary. If your pain point is “it was checked at install time, but changed at runtime,” you can install it on your default or CI profile according to the README and configure strict.

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

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

Xiaoye