aokamoaki/dsh-startup-guard ↗★ 1
dsh-startup-guard
Boot-time guard for DeepSeek Harness: repairs corrupt session logs, snapshots manifests + linked sources, preflights bundle resolution and composition, vm-checks client artifacts, smokes host apply() in a child process and quarantines crash-causing bundles - so a broken plugin or corrupt log can never brick startup.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:aokamoaki/dsh-startup-guard说明文档
阅读完整 README ↗⚙️ 模式与配置
配置文件:~/.dsh/dsh-startup-guard.json(缺省使用默认值)。
| 模式 | 行为 |
|---|---|
report | 只检测与报告,绝不修改任何文件 |
fix(默认) | 自动修复 / 自动禁用 / 自动回滚 |
strict | fix + 致命组合形态写块标记,启动器拒绝启动并弹窗 |
{
"mode": "fix",
"smoke": true,
"smokeTimeoutMs": 15000,
"clientVmCheck": true,
"clientFactorySmoke": false,
"quarantineOnCrash": true,
"autoRepairComposition": true,
"tornTailGraceMs": 300000,
"keepSnapshots": 10,
"exclude": ["some-bundle-i-trust"]
}
| 配置项 | 默认 | 说明 |
|---|---|---|
mode | fix | report / fix / strict |
smoke | true | 是否执行宿主 apply() 冒烟 |
smokeTimeoutMs | 15000 | 单个冒烟子进程超时 |
clientVmCheck | true | 是否在 vm 中真实加载 client 产物 |
clientFactorySmoke | false | 是否额外调用 client factory(stub require) |
quarantineOnCrash | true | 崩溃标记在场时强制全量冒烟 |
autoRepairComposition | true | 自动禁用 name: 失效的 patch row |
tornTailGraceMs | 300000 | 判定"永久 torn 尾帧"的停写时长 |
keepSnapshots | 10 | 保留的快照份数 |
exclude | [] | 永不触碰的 bundle 名单 |