跳到正文

dongsheng123132/dsh-action-parity

30最近提交 2026年8月14日

dsh-action-parity DSH 插件

该插件不执行业务动作,也不测试像素。它验证稳定 Action ID 的清单、内容寻址的动作核心和绑定声明,以及每个界面产生的结构化重放观测。确保这些元素在 CLI、MCP 和 GUI 之间一致。

如何安装 dsh-action-parity DSH 插件

dsh plugin --profile web add github:dongsheng123132/dsh-action-parity

复制不会执行命令。安装 dsh-action-parity DSH 插件前请核对仓库和版本。

dsh-action-parity DSH 插件数据来源

dsh-action-parity DSH 插件快照日期:2026年8月16日

discovered

dsh-action-parity DSH 插件能做什么

  • 验证所有 CLI、MCP 和 GUI 绑定使用相同的稳定 actionId 和 coreActionId。
  • 检查 GUI 绑定暴露 data-action-id:<actionId>,而 CLI 和 MCP 使用稳定机器标识符。
  • 验证核心模块、绑定声明和重放固件的 SHA-256 哈希匹配。
  • 验证同一固件在每个界面产生相同的结果摘要、成功状态和状态版本转换。

dsh-action-parity DSH 插件适合哪些场景

  • 验证示例动作(examples/basic)在 CLI、MCP 和 GUI 绑定中的一致性。
  • 使用 inspect 和 verify 命令检查自定义工作空间根目录的动作奇偶性。
  • 确保过期状态突变被正确拒绝,不会推进状态。
  • 确保需要确认的动作在每个界面强制确认。

dsh-action-parity DSH 插件适合谁

  • 在 DeepSeek Harness 中实现业务动作的开发者。
  • 需要确保 CLI、MCP 和 GUI 接口一致性的工程师。

dsh-action-parity DSH 插件的限制

  • 不执行业务动作,仅验证元数据和重放一致性。
  • 不接受包含 secret、prompt、chat、raw input/output、argv、stdout 或 stderr 字段的输入。
  • 路径必须在 workspaceRoot 内,拒绝符号链接输入和输出目录。
  • 仅写入显式的 artifactDir,并带有原子发布和 SHA-256 读回验证。

dsh-action-parity DSH 插件的仓库 README 摘录

以下文字摘自 dsh-action-parity DSH 插件的上游仓库 dongsheng123132/dsh-action-parity 的 README,版权归原作者,仅作引用。

Evidence that a business action is implemented once and reached consistently from CLI, MCP and GUI surfaces in [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness). This plugin does not execute business actions and does not test buttons by pixels. It verifies a manifest of stable Action IDs, content-addressed action-core and binding declarations, and structural replay observations produced by each interface. ## What it verifies - every CLI, MCP and GUI binding names the same stable `actionId` and `coreActionId`; - GUI bindings expose `data-action-id:<actionId>` while CLI and MCP use stable machine identifiers; - core modules, binding declarations and replay fixtures still match their declared SHA-256; - the same fixture yields the same result digest, success state and state-version transition on every surface; - stale mutations fail closed with `STALE_STATE` and do not advance state; - confirmation-required actions enforce confirmation on every surface; - missing/stale evidence and every parity failure are disclosed in a deterministic content-addressed report. Inputs containing secret-, prompt-, chat-, raw input/output-, argv-, stdout- or stderr-shaped fields are

阅读完整 README仓库许可: MIT

dsh-action-parity DSH 插件常见问题

如何安装 dsh-action-parity?

运行 `dsh plugin --profile web add github:dongsheng123132/dsh-action-parity`。这会注册 `dsh_action_parity_inspect` 和 `dsh_action_parity_verify` 命令。

dsh-action-parity 验证什么?

它验证业务动作在 CLI、MCP 和 GUI 界面间的一致性。检查 Action ID、核心模块和固件的 SHA-256 完整性,以及重放结果的一致性。它不执行实际动作。

退出码是什么意思?

退出码 0 表示成功,2 表示奇偶性失败,1 表示无效或不安全的输入。报告是确定性的且内容寻址。

我可以在 CI 中使用这个插件吗?

是的,该插件设计为 CLI 工具,可以集成到 CI 管道中。仓库包含一个 CI 工作流作为参考。

为什么我的输入被拒绝?

包含 secret、prompt、chat、raw input/output、argv、stdout 或 stderr 字段的输入会被拒绝。路径必须在 workspaceRoot 内,且不允许符号链接输入或输出目录。