Repository navigation
dsh-failure-lens — distinguish Windows sandbox spawn EPERM from test assertion failures #3193
Replies: 4 comments
|
Verified against master (99f6f02) — your four-marker signature is a documented sandbox boundary, and the fact that you still hit it after the mitigation narrows the residual gap. This connects directly to the restricted-token family. 1. The signature is literally named in the source
The mitigation ( 2. Why the residual gap exists (and the precise error mapping)
3. Answering your three maintainer questions
4. One presentation question worth a lookYou noted the durable 中文摘要:四标记签名(spawn EPERM / code EPERM / syscall spawn / node:internal/child_process)是源码中记载的已知边界(index.ts:285-297 明确写了 ERROR_ACCESS_DENIED; Node EPERM 与 piped-stdio grandchild spawn,并已有 default-DACL 缓解);你仍撞上 = 缓解未覆盖的残余缺口(CreateProcess 对镜像文件/路径链的访问检查不受 default-DACL 覆盖,LUA_TOKEN 剥离管理员侧 + 限制 SID 门控其余)。与 #3207(schannel TLS 同受限令牌失败)同根:README 的"网络/进程可见不受限"低估了受限令牌的触达面。建议:README 加 Known limitations 条目(schannel + grandchild spawn 两例)+ Web UI 通用"基础设施失败 vs 断言失败"识别缝(#3203/#3207/#3193 三例都受益)。另:tool/result isError:false + 非零退出码值得确认是否为展示层语义问题。 |
|
Update: Thanks to the feedback above for pushing on both the generic infrastructure-vs-assertion seam and the
Verification: 38/38 tests; main CI passed on Windows/macOS/Linux × Node 22.19/24. A clean Harness restart replayed the unchanged real event and rendered Merged implementation: PR #4. I would still welcome maintainer guidance on whether the broader infrastructure-vs-assertion registry belongs upstream; this plugin remains a conservative reference implementation for one documented boundary. 中文摘要:v0.2 没有盲目扩展规则,而是把“同一结果块 + 可验证失败证据”做成硬门槛;真实回放、公开包全新安装、独立 Web 启动与六环境 CI 均已通过。 |
|
Maintenance follow-up (2026-08-21). @argszero, thank you again — your source-level review directly shaped the v0.2 evidence boundary rather than just its documentation. I have now completed the maintenance work around that implementation without broadening the classifier:
The broader upstream question you identified is still the important one: whether Harness should expose a generic “infrastructure boundary vs assertion failure” seam. If you encounter the same 中文摘要:你的反馈已落实为 v0.2 的同块失败证据边界。本轮又补齐了双平台 |
|
Release update (2026-08-21): v0.2.2 is now the npm latest and the current GitHub Release. Install: dsh plugin --profile web add dsh-failure-lens@0.2.2 The package was published from the tagged public commit through GitHub OIDC trusted publishing and exposes an npm SLSA provenance attestation. A clean registry install into a fresh Harness rc.7 Web profile confirmed version 0.2.2, automatic bundle-list registration, and successful composed-config loading. The release passed 38/38 tests and the six-platform/version CI matrix. A post-publication byte comparison of v0.2.1 found that lightningcss had included the build-machine absolute filename in its CSS Module hash input. Runtime behavior was correct, but Windows and Linux produced different class names and the generated comment retained a checkout path. v0.2.2 fixes the identity to a canonical repository-relative path and makes the build fail on an absolute-root leak. The reviewed local build and an alternate junctioned checkout produced the same client SHA-256. The trusted workflow now packs once, uploads that exact tarball to the GitHub Release, and submits the same file to npm; fresh downloads from both channels and the published checksum all match SHA-256 4e83f65864c2fb0ad9d209ce119825797b393d6f18190c5ccd7c73a32e2fb589. @argszero, your review remains reflected in the released classifier boundary: it is still deliberately limited to the single same-block, durable-evidence spawn EPERM signature. v0.2.2 does not add speculative TLS or temp-dir signatures. No retest is expected, but a privacy-trimmed rc.8/current-next outcome would remain useful if you encounter the boundary naturally. 中文摘要:当前稳定版为 v0.2.2,已通过 GitHub OIDC 发布到 npm 并带 provenance;全新 Harness profile 安装、bundle 自动登记和六环境 CI 均通过。发布后逐字节复核发现并修复了 CSS 哈希依赖构建机绝对路径的问题;现在 GitHub 与 npm 使用同一个 tarball,两个公网下载和声明校验和完全一致。分类器范围没有扩大。 |
Uh oh!
There was an error while loading. Please reload this page.
Project: https://github.com/ArmyWas/dsh-failure-lens
Release: https://github.com/ArmyWas/dsh-failure-lens/releases/tag/v0.1.1
The real pain
While dogfooding
dsh-plugin-reduceron Windows, I rannpm testinside a normal Harness workspace-write sandbox. Six test files were shown as failed, but no test body had started: Node/esbuild was blocked while spawning a child process with piped stdio.The durable event was a
tool/resultwithisError: false, a non-zero exit code, and repeated stacks containing all four markers:Error: spawn EPERMcode: 'EPERM'syscall: 'spawn'node:internal/child_processThat presentation makes an infrastructure boundary easy to misread as broken test assertions.
What the plugin does
dsh-failure-lenskeeps the original tool result and adds a separate Conversation Node immediately beside it:This is a deterministic read-only explanation, not a workaround for the sandbox restriction. It makes no model call, writes no session state, sends no telemetry, auto-approves nothing, does not patch the DOM, and does not hide or duplicate the raw output.
Why this is not a duplicate
dsh-fail-loggeris adjacent but records thrown failures into a long-term skill and explicitly excludes non-zero shell exits. This observed result isisError: false. Failure Lens writes no skill and only explains this four-condition signature in the current conversation.Harness integration and verification
conversationEvents.register,slots.inject('conversation.chat.node', ...), andlocale.register.dsh.clientlazy-CJS bundle plusdsh.bundle.patchprofile integration.spawn EPERMresult.Maintainer feedback requested
中文摘要
这是一个来自真实 Harness 使用痛点的只读 Web 插件:Windows 沙箱阻止 Node 子进程启动时,界面可能把所有测试文件显示为失败,让用户误以为测试断言坏了。插件只有在四项高置信证据同时出现时,才在原始工具结果旁增加“Harness 沙箱限制”提示,并明确“测试根本没有启动”。
它不绕过沙箱、不自动审批、不调用模型、不写日志、不做 DOM 补丁。已完成 32 项测试、Node 22/24 CI、真实 Web profile 安装回放,以及 GitHub Release 的全新环境安装验证。希望官方反馈:这一能力更适合继续作为窄插件,还是在收集更多证据后进入官方会话/沙箱 UI。
All reactions