@deepseek-ai/dsh-sandbox-local 0.1.6-alpha.2 → 0.1.7-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.i18n.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  # Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
- # pnpm run verify-translation-pairing --write packages/sandbox/sandbox-local/README.md
5
- README.md: 15da8baaa3ab7ce476f5c45c6207657915fd7815
6
- README.zh.md: 0e55553e1ff18ae6e91563c34eb30f4dab61f45c
4
+ # pnpm run verify-translation-pairing --write packages//sandbox//sandbox-local//README.md
5
+ README.md: 278f2e5810e0dee12b061b33d08716cdcf5b7ae2
6
+ README.zh.md: a7854c30d03d6be84bc0dc5b2a7a4bd1e07f97e4
package/README.md CHANGED
@@ -50,7 +50,7 @@ The generated [configuration catalog](../../../docs/config-catalog.md#deepseek-a
50
50
 
51
51
  ### Confined execution and enforcement
52
52
 
53
- With the provider mounted, a command runs under the mode you resolve per call. Enforcement is a reported fact, not a promise: `full` means the backend governs every promised file effect, while `partial` means it governs only a subset — the Windows ACL rung (Everyone and hard-link boundaries) and older Landlock ABIs are the current partial cases, so a consumer that requires an absolute boundary can reject or surface them. Denied file effects surface through the backend's denial dialect, and a runner that fails before executing the command reports a structured runner-failure signature.
53
+ With the provider mounted, a command runs under the mode you resolve per call. Enforcement is a reported fact, not a promise: `full` means the backend governs every promised file effect, while `partial` means it governs only a subset — the Windows ACL rung (hard-link, unconfined-read, and AppContainer-ACL boundaries) and older Landlock ABIs are the current partial cases, so a consumer that requires an absolute boundary can reject or surface them. Denied file effects surface through the backend's denial dialect, and a runner that fails before executing the command reports a structured runner-failure signature.
54
54
 
55
55
  ### Failures and recovery
56
56
 
@@ -78,7 +78,7 @@ The `@deepseek-ai/node-addon-system/landlock-run` API supplies the platform laun
78
78
 
79
79
  The Seatbelt profile is allow-default with `(deny file-write*)` plus write allow-lists derived from the shared `writableRoots` helper, so exactly the mode's promised file effects are governed; every root is canonicalized because Seatbelt matches resolved paths (`/tmp` IS `/private/tmp`).
80
80
 
81
- The Windows rung keeps one deterministic write SID and standing ACE per workspace, while every live session/workspace pair gets a random private temp directory with a distinct SID and revocable ACE — sessions sharing a workspace share its intended write authority without inheriting one another's temp authority. A fresh provider always chooses a new temp path and SID, so crash residue cannot block or authorize a resumed session. The rung reports `partial` enforcement because the restricted token must retain Everyone and NTFS hard links alias one file object across paths.
81
+ The Windows rung keeps one deterministic write SID and standing ACE per workspace, while every live session/workspace pair gets a random private temp directory with a distinct SID and revocable ACE — sessions sharing a workspace share its intended write authority without inheriting one another's temp authority. A fresh provider always chooses a new temp path and SID, so crash residue cannot block or authorize a resumed session. The rung reports `partial` enforcement because NTFS hard links alias one file object across paths, reads stay unconfined, and a tree another AppContainer tool has ACL'd with a package SID is unreadable to the Low-integrity child.
82
82
 
83
83
  When the built ACL runner is absent, source launch pins the `tsx/esm/api` loader and TypeScript path mapping to this installation. The command's working directory and ambient `TSX_TSCONFIG_PATH` cannot select the runner's source dependencies.
84
84
 
@@ -127,7 +127,7 @@ No direct invalidation; the named consumers own any request-prefix changes.
127
127
 
128
128
  These limits define when the provider is a poor fit or needs special operational care. They are current package constraints, not a general platform comparison or a task backlog.
129
129
 
130
- - **Windows ACL enforcement is partial** — the restricted token must retain Everyone for process initialization, so external objects granting Everyone write access remain writable; NTFS hard links also alias one file object across workspace and external paths. The provider reports `enforcement: 'partial'` rather than overstating that boundary as full.
130
+ - **Windows ACL enforcement is partial** — NTFS hard links alias one file object across workspace and external paths, reads stay unconfined, and a tree another AppContainer tool has ACL'd with a package SID is unreadable to the Low-integrity child. The provider reports `enforcement: 'partial'` rather than overstating that boundary as full.
131
131
  - **Landlock may be partial** — older supported kernel ABIs confine only the access classes they expose, reported as `enforcement: 'partial'` rather than overstated as full.
132
132
  - **Seatbelt depends on deprecated `sandbox-exec`** — macOS still ships it, but this provider cannot replace or probe that private policy engine if Apple removes it.
133
133
  - **Runner selection is cached for the provider lifetime** — installing, removing, or repairing a runner requires reloading the plugin before selection changes.
package/README.zh.md CHANGED
@@ -50,7 +50,7 @@ kind: "package-reference"
50
50
 
51
51
  ### 受限执行与强制执行
52
52
 
53
- 挂载提供方后,命令在你逐调用解析的模式下运行。强制执行是报告的事实,而非承诺:`full` 表示后端管辖模式承诺的每个文件操作,`partial` 表示它只管辖子集——Windows ACL 档(Everyone 与硬链接边界)与较旧的 Landlock ABI 是当前的部分强制执行情形,因此需要绝对边界的消费方可以拒绝或向上暴露它们。被拒绝的文件操作通过后端的拒绝方言呈现,执行命令前失败的 runner 会报告结构化的 runner 失败签名。
53
+ 挂载提供方后,命令在你逐调用解析的模式下运行。强制执行是报告的事实,而非承诺:`full` 表示后端管辖模式承诺的每个文件操作,`partial` 表示它只管辖子集——Windows ACL 档(硬链接、读取不受限与 AppContainer ACL 边界)与较旧的 Landlock ABI 是当前的部分强制执行情形,因此需要绝对边界的消费方可以拒绝或向上暴露它们。被拒绝的文件操作通过后端的拒绝方言呈现,执行命令前失败的 runner 会报告结构化的 runner 失败签名。
54
54
 
55
55
  ### 失败与恢复
56
56
 
@@ -78,7 +78,7 @@ bwrap profile 组合只读宿主根目录、全新 `/dev` 与私有 PID 命名
78
78
 
79
79
  Seatbelt profile 默认允许,带 `(deny file-write*)` 与来自共享 `writableRoots` 辅助函数的写入 allow-list,因此恰好管辖模式承诺的文件操作;每个根目录都经过规范化,因为 Seatbelt 匹配解析后的路径(`/tmp` 就是 `/private/tmp`)。
80
80
 
81
- Windows 档为每个工作区保留一个确定性写入 SID 和常驻 ACE,同时为每个活跃的会话/工作区对分配一个随机私有临时目录,以及不同的 SID 和可撤销 ACE——共享工作区的会话共享其预期写权限,却不会继承彼此的临时目录权限。新的提供方总会选择新的临时路径和 SID,因此崩溃残留既无法阻止恢复的会话,也无法向其授权。该档报告 `partial` 强制执行,因为受限令牌必须保留 Everyone,且 NTFS 硬链接会把同一文件对象别名为多个路径。
81
+ Windows 档为每个工作区保留一个确定性写入 SID 和常驻 ACE,同时为每个活跃的会话/工作区对分配一个随机私有临时目录,以及不同的 SID 和可撤销 ACE——共享工作区的会话共享其预期写权限,却不会继承彼此的临时目录权限。新的提供方总会选择新的临时路径和 SID,因此崩溃残留既无法阻止恢复的会话,也无法向其授权。该档报告 `partial` 强制执行,因为 NTFS 硬链接会把同一文件对象别名为多个路径、读取仍不受限,且被其他 AppContainer 工具以包 SID 标记过的目录树对 Low 完整性子进程不可读。
82
82
 
83
83
  构建后的 ACL runner 缺失时,源码启动将 `tsx/esm/api` 加载器和 TypeScript 路径映射固定到本安装目录。命令的工作目录和环境中的 `TSX_TSCONFIG_PATH` 无法选择 runner 的源码依赖。
84
84
 
@@ -127,7 +127,7 @@ Windows 档为每个工作区保留一个确定性写入 SID 和常驻 ACE,同
127
127
 
128
128
  这些限制说明提供方何时不合适,或何时需要特别运维。它们是当前包约束,不是通用平台对比或任务积压。
129
129
 
130
- - **Windows ACL 只能实现部分强制执行**——受限令牌必须保留 Everyone 以完成进程初始化,因此授予 Everyone 写访问的外部对象仍可写;NTFS 硬链接也会使工作区路径与外部路径指向同一个文件对象。提供方报告 `enforcement: 'partial'`,而不会把该边界夸大为完整强制执行。
130
+ - **Windows ACL 只能实现部分强制执行**——NTFS 硬链接会使工作区路径与外部路径指向同一个文件对象,读取仍不受限,且被其他 AppContainer 工具以包 SID 标记过的目录树对 Low 完整性子进程不可读。提供方报告 `enforcement: 'partial'`,而不会把该边界夸大为完整强制执行。
131
131
  - **Landlock 可能只实现部分强制执行**——较旧且受支持的内核 ABI 只能限制自身公开的访问类别,因此报告 `enforcement: 'partial'`,不会夸大为完整强制执行。
132
132
  - **Seatbelt 依赖已弃用的 `sandbox-exec`**——macOS 仍会提供它,但若 Apple 移除该私有策略引擎,该提供方无法替换或探测。
133
133
  - **runner 选择在提供方生命周期内缓存**——安装、移除或修复 runner 后,必须重载插件才能改变选择。
package/lib/index.js CHANGED
@@ -92,8 +92,9 @@ function seatbeltProfileArgs(policy) {
92
92
  * session); the private-temp ACEs are revoked on dispose. The runner
93
93
  * receives both SIDs (their presence marks the seam-managed contract) and
94
94
  * stops managing DACLs itself. The rung reports partial enforcement because
95
- * WRITE_RESTRICTED must retain Everyone in its
96
- * restricting list and NTFS hard links alias one file object across paths.
95
+ * NTFS hard links alias one file object across paths, reads stay unconfined,
96
+ * and a tree another AppContainer tool has ACL'd with a package SID is not
97
+ * readable by the Low-integrity child.
97
98
  * @module @deepseek-ai/dsh-sandbox-local
98
99
  */
99
100
  /** Probe whether `bwrap` can create the profile; the provider caches the bounded result. */
@@ -15,8 +15,9 @@
15
15
  * session); the private-temp ACEs are revoked on dispose. The runner
16
16
  * receives both SIDs (their presence marks the seam-managed contract) and
17
17
  * stops managing DACLs itself. The rung reports partial enforcement because
18
- * WRITE_RESTRICTED must retain Everyone in its
19
- * restricting list and NTFS hard links alias one file object across paths.
18
+ * NTFS hard links alias one file object across paths, reads stay unconfined,
19
+ * and a tree another AppContainer tool has ACL'd with a package SID is not
20
+ * readable by the Low-integrity child.
20
21
  * @module @deepseek-ai/dsh-sandbox-local
21
22
  */
22
23
  import { Context } from '@deepseek-ai/cordis';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-sandbox-local",
3
3
  "description": "Local process-sandbox backends for the DeepSeek Harness sandbox seam: bwrap, the npm-distributed landlock-run launcher, macOS Seatbelt, or the Windows ACL restricted-token runner — functionally probed, fail-closed",
4
- "version": "0.1.6-alpha.2",
4
+ "version": "0.1.7-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,21 +27,21 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
- "@deepseek-ai/cordis": "^4.0.2",
31
- "@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
32
- "@deepseek-ai/dsh-sandbox": "^0.1.6-alpha.2",
33
- "@deepseek-ai/dsh-session": "^0.1.6-alpha.2"
30
+ "@deepseek-ai/dsh-llm": "0.1.7-alpha.2",
31
+ "@deepseek-ai/dsh-sandbox": "0.1.7-alpha.2",
32
+ "@deepseek-ai/cordis": "~4.0.4",
33
+ "@deepseek-ai/dsh-session": "0.1.7-alpha.2"
34
34
  },
35
35
  "dependencies": {
36
- "@deepseek-ai/dsh-sandbox-windows-acl": "^0.1.6-alpha.2",
37
- "@deepseek-ai/dsh-util-values": "^0.1.6-alpha.2",
38
- "@deepseek-ai/node-addon-system": "^0.1.2",
39
- "@deepseek-ai/schemastery": "^3.18.2"
36
+ "@deepseek-ai/dsh-sandbox-windows-acl": "0.1.7-alpha.2",
37
+ "@deepseek-ai/dsh-util-values": "0.1.7-alpha.2",
38
+ "@deepseek-ai/node-addon-system": "~0.1.2",
39
+ "@deepseek-ai/schemastery": "~3.18.4"
40
40
  },
41
41
  "devDependencies": {
42
- "@deepseek-ai/cordis": "^4.0.2",
43
- "@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
44
- "@deepseek-ai/dsh-sandbox": "^0.1.6-alpha.2",
45
- "@deepseek-ai/dsh-session": "^0.1.6-alpha.2"
42
+ "@deepseek-ai/dsh-llm": "0.1.7-alpha.2",
43
+ "@deepseek-ai/cordis": "~4.0.4",
44
+ "@deepseek-ai/dsh-sandbox": "0.1.7-alpha.2",
45
+ "@deepseek-ai/dsh-session": "0.1.7-alpha.2"
46
46
  }
47
47
  }