Leo-Ayh-Oday/dsh-orcana--packages-dsh-orcana-linux-bundle0

@leooday/dsh-orcana-linux-bundle

dsh-orcana Linux 原生证据 Profile 捆绑包,通过 dsh.bundle.patch 契约激活 DSH 原生执行证据适配器,不额外增加资源限制。

AI 分析

核心用途是为 Linux/WSL 环境下的 Orcana 治理提供原生证据收集支持。适合已部署 Linux 隔离环境、需要收集沙箱执行事实的用户。

套件
@leooday/dsh-orcana-linux-bundle
版本
0.3.0
授權
MIT
最近更新
2026年8月17日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Leo-Ayh-Oday/dsh-orcana#c9b89e26d3dc62cdea315c307146836cc50f3f68&path:packages/dsh-orcana-linux-bundle

@leooday/dsh-orcana-linux-bundle

English | 中文

Profile bundle for @leooday/dsh-orcana-linux. The bundle now activates the DSH-native execution evidence adapter via the dsh.bundle.patch contract.

DSH remains the sole execution-enforcement owner. Installing this bundle is neutral: it does not add a second prlimit, network namespace, resource cap, or egress policy. Orcana observes the sandbox facts and native receipt that DSH actually produced.

Install

dsh plugin --profile orcana-linux add @leooday/dsh-orcana-linux-bundle

dsh plugin add installs the bundle and activates it as a profile layer. For checkout-based development, use scripts/install-orcana-linux.sh.

Upgrade from the legacy hardening row

Bundle 0.3.0 changes the dsh-orcana-linux row from the legacy argv-hardening plugin to @leooday/dsh-orcana-linux/native-evidence while keeping the row id stable.

If an existing profile still supplies any legacy Orcana enforcement fields on that row — network, resourceLimits, degradationPolicy, or capabilities — the evidence adapter throws the stable LEGACY_HARDENING_CONFIG_MOVED error. It deliberately fails closed instead of letting schemastery strip the old fields and silently weakening the previous policy.

Migrate network and resourceLimits to DSH's sandbox-policy row as shown below. The old Orcana degradationPolicy / capabilities knobs are not mapped: DSH now reports actual applied/degraded native facts through SandboxReceipt, and Orcana consumes those facts rather than pretending to own enforcement.

Native enforcement belongs to sandbox-policy

Current DSH already owns resourceLimits and network on its existing sandbox-policy row. Configure that row in a later profile/user patch instead of configuring the Orcana evidence row.

A DSH patch replaces the target row's whole config, so preserve the standing mode/root when adding native limits:

- id: sandbox-policy
  config:
    mode: !!js process.env.DSH_PERMISSION_MODE ?? 'workspace-write'
    workspaceRoot: !!js process.cwd()
    network: none
    resourceLimits:
      memoryBytes: 536870912
      pidsMax: 64
      cpuQuotaUs: 50000

DSH then chooses its real mechanism (for example cgroup v2 or a documented prlimit fallback), records degradations, and returns its native SandboxReceipt. Orcana's native-evidence adapter records that receipt without changing the execution.

The package root (@leooday/dsh-orcana-linux) remains available temporarily as the legacy argv-hardening API for compatibility. The bundle does not load that legacy path. New DSH integrations should use the bundle/native-evidence path.

See the package README for the Windows → WSL execution bridge and evidence semantics.