跳到正文

dongsheng123132/dsh-2origin

30最近提交 2026年8月14日

dsh-2origin DSH 插件

dsh-2origin 是一个 DSH 插件,允许代理检查 `task.origin.json` 状态,区分语义内容与来源元数据,比较完整候选文档,并使用乐观锁凭证冻结精确观察到的版本。它提供 DSH 工具面和独立的仅证明 MCP 服务器用于内联验证。

如何安装 dsh-2origin DSH 插件

dsh plugin --profile <name> add github:dongsheng123132/dsh-2origin

来源命令需要人工核对。复制不会执行命令。

dsh-2origin DSH 插件数据来源

dsh-2origin DSH 插件快照日期:2026年8月16日

discovered

dsh-2origin DSH 插件能做什么

  • 通过 `dsh_2origin_status` 提供紧凑状态投影和哈希完整性检查
  • 通过 `dsh_2origin_diff` 对候选 JSON 文档进行只读语义差异对比
  • 通过 `dsh_2origin_freeze` 进行内容寻址冻结,具有独占创建和回读验证
  • 提供独立的 stdio MCP 服务器,用于有界状态证明和差异证明(不涉及文件系统写入)

dsh-2origin DSH 插件适合哪些场景

  • 在做出工作流决策前验证任务状态的完整性
  • 将候选状态与当前冻结状态进行比较,检测语义变化
  • 将特定版本的任务状态冻结为不可变快照,用于审计或回滚
  • 使用 MCP 服务器验证内联状态文档,无需文件系统访问

dsh-2origin DSH 插件适合谁

  • 使用 2Origin 任务状态文档的 DSH 代理开发者
  • 需要可验证、不可变的任务状态转换记录的团队

dsh-2origin DSH 插件的限制

  • 仅支持 2Origin/0.2 任务状态格式,不是通用存储或活动日志
  • 冻结是唯一的写入操作,针对单独的快照目录;不会修改实时状态
  • 需要显式工作区配置(workspaceRoot、stateFile、freezeDir)
  • MCP 服务器不暴露冻结功能(文件系统写入保留在 CLI/DSH 表面)

dsh-2origin DSH 插件的仓库 README 摘录

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

Evidence-first 2Origin state projection, semantic diff and immutable freeze for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness). Chat history is not the handoff artifact. A `task.origin.json` state is. This plugin lets a DSH agent inspect that state, distinguish semantic content from provenance metadata, compare a complete candidate, and freeze the exact observed version with an optimistic-lock credential. v0.2 is a formal Codex plugin with a separate proof-only MCP surface. It also removes the default export that made the real Cordis Loader discard namespace `inject` metadata, and carries a stock Web Loader regression smoke. ## Install ```bash dsh plugin --profile <name> add github:dongsheng123132/dsh-2origin ``` Configure the workspace explicitly: ```yaml - id: dsh-2origin name: dsh-2origin config: workspaceRoot: C:/absolute/project/path stateFile: demo/my-task/task.origin.json freezeDir: .2origin/frozen ``` All configured file paths are relative to `workspaceRoot`. Traversal and symlink escape are refused. ## DSH tools - `dsh_2origin_status` — compact projection, counts, verified-fact count, and recorded-vs-computed hash integrity. -

阅读完整 README仓库许可: MIT

dsh-2origin DSH 插件常见问题

如何安装 dsh-2origin?

在 DSH 环境中运行 `dsh plugin --profile <name> add github:dongsheng123132/dsh-2origin`。然后在插件配置 YAML 中设置 `workspaceRoot`、`stateFile` 和 `freezeDir`。

冻结工具(freeze)有什么作用?

`dsh_2origin_freeze` 使用期望的哈希进行乐观锁定,创建当前状态文件的内容寻址快照。它会拒绝过时状态,并通过回读验证快照。重复相同的请求是幂等的。

可以用 MCP 服务器冻结状态吗?

不可以。MCP 服务器有意不暴露冻结功能,仅提供内联验证(`state_proof` 和 `state_diff_proof`),不涉及文件系统写入。冻结仅通过 CLI 和 DSH 工具面可用。

常规 diff 和 dsh_2origin_diff 有什么区别?

`dsh_2origin_diff` 执行语义差异,忽略版本、时间戳、执行者和存储哈希字段,只报告实际内容的变更。候选文档必须是一个完整的 JSON 文件。

这个插件会修改实时任务状态吗?

不会。插件故意不更新实时状态。冻结操作写入独立的快照目录。实时状态的变更由所属系统负责,以避免产生第二个事实来源。