DeepSeek Harness DeepSeek Harness 插件目录

← 目录

sandbox-escalation-compat

sandbox-escalation-compat@0.1.3
loader sandbox-escalation-compat

发布时间 更新时间

Fix Error: sandbox escalation to "workspace-write" is not strictly wider than this call's current "danger-full-access" mode。gpt-5.6-sol 常见。tools/execute 事件剥掉非加宽 sandbox_permissions(同级或更窄),真正加宽仍走审批。

给 Agent: Markdown · JSON · tarball

在已有插件市场的机器上安装

curl -fsSL https://addon.dshdo.com/install-plugin-market.sh | sh
# then in /plugin-market/ install sandbox-escalation-compat and enable it

打开本机 /plugin-market/ 云端市场,安装该 id,再启用。安装只登记,启用才运行。

版本

文件

sha256
fa0cbd8725a647ceb4d72e5c0a2bac6ee73659eeddce044a0b4fefb7a700f185
6939 bytes · package sandbox-escalation-compat

README

sandbox-escalation-compat

English | 中文

Fix: Error: sandbox escalation to "workspace-write" is not strictly wider than this call's current "danger-full-access" mode

树外 DeepSeek Harness 插件。部分模型(gpt-5.6-sol 及其系列)会在 bash / write / edit 上带上并不比当前模式更宽的 sandbox_permissions——典型情况是会话已是 danger-full-access,模型仍请求 workspace-write。官方执行器会失败并返回:

Error: sandbox escalation to "workspace-write" is not strictly wider than this call's current "danger-full-access" mode

本插件监听工具注册表的 tools/execute 环绕分派 waterfall,把这种非加宽的 sandbox_permissions + justification 从调用参数里剥掉,让调用按当前模式继续。真正加宽的请求原样交给官方审批,不会被绕过。

不改 harness 主仓,不额外授权,不绕过真实升权审批。

为什么用 tools/execute 事件而不是包装 execute

0.1.x 是包装已注册工具的 execute()(ctx.tools.schemas() + ctx.tools.get())。agent preset(dsh-web-app 0.1.x)把模型可见工具移到每个 preset 的 scope layer 之后,host 平面的插件枚举 ctx.tools 只能看到 global layer——根本拿不到会话真正分派的 bash / write / edit 定义,包装静默失效。

tools/execute waterfall 是官方文档化的环绕分派接缝(timeout policy 就用它),无论工具注册在哪个 scope 都能拦到每一次分派。host 平面(无 tag)监听器能收到每个 agent 的事件,通过 ctx.sandboxPolicy 解析会话当前沙箱模式,仅当调用带了非加宽 sandbox_permissions 时改写 exec.arguments。

行为

当前模式请求模式结果
danger-full-accessworkspace-write剥掉;按当前模式执行
danger-full-accessdanger-full-access剥掉;按当前模式执行(重复申明,非升权)
workspace-writedanger-full-access不改;仍走审批
read-onlyworkspace-write不改;仍走审批
任意*(未带该字段)*不改

未组合 ctx.sandboxPolicy,或当前模式无法解析为已知沙箱档位时,监听器为空操作,由官方 fail-closed 路径裁决。

安装

在插件市场(/plugin-market/)安装目录 id sandbox-escalation-compat,再启用。或把本目录放到 ~/dsh-plugins/sandbox-escalation-compat/,从本机货架启用。

搜索 / SEO:本插件修复 DeepSeek Harness 在 gpt-5.6-sol(及其系列)上的报错 Error: sandbox escalation to "workspace-write" is not strictly wider than this call's current "danger-full-access" mode。

更新插件后请重启 dsh web,让 Loader 读到新入口(运行中的进程不会热加载运行期间写入的 patch)。

测试

node --test ~/dsh-plugins/sandbox-escalation-compat/tests/*.test.mjs