Repository navigation
DSH | dsh-plugin-reducer | Find the minimal plugin set that reproduces a failure #3133
Replies: 2 comments
|
Update:
The measured run and the review correction are recorded in the Harness dogfood report. The merged implementation is in PR #2. One separate Harness UX finding from the run: on Windows, the restricted sandbox hit the documented child-process pipe limitation ( The project remains an unofficial early preview. Feedback on the four integration questions in the original post is still very welcome. |
|
Update: A community integration attempt made one missing product seam concrete: v0.2 had a useful reducer, but no stable contract for another plugin or CI job to consume. v0.3 adds that contract without changing the reducer's isolated-shadow-home safety model:
Verification: 38/38 tests; main CI passed on Windows/macOS/Linux × Node 22.19/24. I then installed the public release asset into a fresh directory and ran a real synthetic reduction through the installed binary: it returned the expected one-minimal pair ( Merged implementation: PR #3. Feedback on whether this envelope is sufficient for an upstream integration seam is especially welcome. 中文摘要:v0.3 把真实社区集成中暴露的“缺少稳定机器接口”补齐了;跨三系统六环境通过,并用公开 Release 包全新安装后完成真实最小化验证,源配置未改动。 |
Uh oh!
There was an error while loading. Please reload this page.
Project URL: https://github.com/ArmyWas/dsh-plugin-reducer
Introduction
dsh-plugin-reduceris an external diagnostic CLI for DeepSeek Harness. Itanswers one narrow question: which installed profile bundles are actually
required to reproduce this failure?
The difficult case is an interaction: A starts alone, B starts alone, but A+B
breaks the profile. Disabling one plugin at a time can miss that. A diagnostic
plugin inside Harness can also disappear when the plugin tree itself cannot
load, so the reducer deliberately runs outside Harness.
It creates a fresh disposable shadow
DSH_HOMEfor every probe, reuses theprofile's already-installed packages, tests subsets and complements with delta
debugging, and returns a 1-minimal failure-inducing set. It never installs
packages or rewrites the source profile. Optional JSON reports scrub common
secret forms and local absolute paths.
Real Harness test
I tested the packaged CLI against
@deepseek-ai/dsh@0.1.0-rc.7. Three bundleswere installed through the official profile flow: A and B registered the same
global tool, while C was a no-op. A and B each passed alone; A+B failed.
The reducer found
{A, B}in six configurations, verified that removing eithermember stopped the failure, and confirmed that the source profile fingerprint
was unchanged.
DSH integration
$DSH_HOME/profiles/<name>/package.jsonprofile model.dsh.profile.bundlesanddependencies.dshexecutable for config or Web-startup probes.node_moduleswithout package installation.load.
Install from the tagged GitHub source:
Scope
This is deliberately not another startup guard, doctor, plugin manager, or
session repro exporter. Those tools recover, inspect, manage, or capture context;
this tool minimizes the active plugin set after a failure is reproducible.
The algorithm guarantees 1-minimality, not a globally smallest set. The shadow
home is configuration isolation, not a security sandbox; installed plugins run
with the user's normal permissions.
Maintainer feedback requested
dependencies ∩ dsh.profile.bundlesthe intended stable definition ofout-of-tree bundles?
dsh plugin reduce, or first bereferenced by troubleshooting guidance while usage evidence accumulates?
The repository includes bilingual documentation, the ecosystem search, real
runtime evidence, a versioned report schema, safety boundaries, and an upstream
RFC. It is an early preview and is not affiliated with or endorsed by DeepSeek.
中文摘要
这是一个非官方的 Harness 外置诊断工具,用于自动找出能稳定复现故障的 1-最小
树外 bundle 集合。它能处理“A 单独正常、B 单独正常、A+B 才崩”的交互问题。
每次探针使用全新影子
DSH_HOME,不安装依赖、不修改真实 profile,并可生成经过常见密钥与本机路径脱敏的 JSON 报告。
真实 rc.7 测试中,工具用 6 个组合找出
{A, B},验证两者单独均通过,且真实profile 前后指纹一致。希望官方维护者反馈树外 bundle 的稳定识别方式、机器可读
诊断接口,以及该能力更适合保持外置还是未来进入
dsh plugin reduce。All reactions