refactor(sandbox-policy): remove capability family registries
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
||||
# after editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write packages/pty/pty-local/README.md
|
||||
README.md: 5ad2c94f7c3e8e8bda5b7b432b3d0529a30f2b4e
|
||||
README.zh.md: 0ab3f4a485315e6037d862f423f9e25b6200a63e
|
||||
README.md: 4c200743732e62d8e76afd1a055943dac5f141b0
|
||||
README.zh.md: 0fbcc0eb8c0b5ddb89e62b4e748d1bd280b50b36
|
||||
|
||||
@@ -18,7 +18,7 @@ Send cancellation resolves the current foreground process group and delivers a r
|
||||
|
||||
#### What the model sees
|
||||
|
||||
This backend contributes the terminal family to the owner-rendered `sandbox:policy` section. Through `@deepseek-ai/dsh-tool-pty` or another PTY consumer, the model may also receive bounded MOTD, send deltas, scrollback pages, readiness reasons, and cleanup errors.
|
||||
The policy owner contributes capability-neutral `sandbox:policy` context. Through `@deepseek-ai/dsh-tool-pty` or another PTY consumer, the model may also receive bounded MOTD, send deltas, scrollback pages, readiness reasons, and cleanup errors.
|
||||
|
||||
#### Token effect
|
||||
|
||||
@@ -26,7 +26,7 @@ The current-policy clause is present while this backend is mounted. Retained PTY
|
||||
|
||||
#### KV Cache effect
|
||||
|
||||
A standing-policy or terminal-family change updates the owner-rendered request prefix; consumer results remain append-only.
|
||||
A standing-policy change updates the owner-rendered request prefix; consumer results remain append-only.
|
||||
|
||||
## Known Limitations and Deferred Work
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ Linux 的就绪检测结合以下机制:由前台状态验证的私有 bash
|
||||
|
||||
#### 模型看到的内容
|
||||
|
||||
该后端会向归属方渲染的 `sandbox:policy` 段落贡献终端家族。模型通过 `@deepseek-ai/dsh-tool-pty` 或其他 PTY 消费方还可能收到有界的 MOTD、发送增量、scrollback 页、就绪原因和清理错误。
|
||||
策略归属方会贡献与具体能力无关的 `sandbox:policy` 上下文。模型通过 `@deepseek-ai/dsh-tool-pty` 或其他 PTY 消费方还可能收到有界的 MOTD、发送增量、scrollback 页、就绪原因和清理错误。
|
||||
|
||||
#### Token 影响
|
||||
|
||||
@@ -26,7 +26,7 @@ Linux 的就绪检测结合以下机制:由前台状态验证的私有 bash
|
||||
|
||||
#### KV Cache 影响
|
||||
|
||||
常驻策略或终端家族发生变化时,归属方渲染的请求前缀会更新;消费方结果保持仅追加。
|
||||
常驻策略发生变化时,归属方渲染的请求前缀会更新;消费方结果保持仅追加。
|
||||
|
||||
## 已知限制与暂缓事项
|
||||
|
||||
|
||||
@@ -129,6 +129,5 @@ export class LocalPtyBackend implements PtyBackend {
|
||||
export function apply(ctx: Context, config: Config): void {
|
||||
validateConfig(config)
|
||||
const inspector = createProcessInspector()
|
||||
ctx.sandboxPolicy.registerEnforcedFamily('terminal')
|
||||
ctx.pty.registerBackend(new LocalPtyBackend(ctx, config, inspector))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user