证据快照复核于 2026-09-09GitHub 数据核对日期: 2026-08-21
证据已验证Plugin Bundle安全与治理deepseek-harness Profile

dsh-2origin

用于 DeepSeek Harness 的插件,可检查、语义比较并不可变冻结 2origin 任务状态文档。

快速了解

它能做什么

用于 DeepSeek Harness 的插件,可检查、语义比较并不可变冻结 2origin 任务状态文档。

本站提供的是中文说明,不代表该项目或 Plugin 自身提供中文界面;语言支持请以上游文档为准。

使用场景
安全与治理配置
适配技术
deepseek-harnessnodejs
兼容性

deepseek-harness Profile
>=0.1.2-alpha.4; listed compatible through 0.1.2-rc.1

可信度与状态

证据已验证
核对日期 2026/9/6 UTC 13:51

有代码证据的贡献

它为 DSH 增加什么

2Origin 状态工具

对既有 2origin/0.2 任务状态文档进行投影、语义差异比较和冻结。

机制证据
仅证明型 MCP 服务

校验受大小限制的内联状态文档并进行比较,不访问文件系统。

机制证据

选择前先看

dsh-2origin 将 task.origin.json 视为交接产物。其 DSH 工具可报告状态完整性、比较有意义的内容变化并忽略部分来源字段,还可将已确认哈希对应的状态冻结为独立的内容寻址快照。

适合谁

已维护 2origin/0.2 任务状态文档,并需要受控校验和快照步骤的 DeepSeek Harness 用户。

常见任务

  • 检查已配置任务状态的记录哈希与计算哈希,以及摘要计数。
  • 比较完整候选状态,同时不将版本、时间戳、操作者和存储哈希视为内容变更。
  • 将刚刚通过哈希确认的状态冻结到独立快照目录。
  • 通过仅证明型 MCP 接口校验受限大小的内联文档,无需文件系统访问。

权限与数据

DSH/CLI 接口会读取配置的任务状态文件;freeze 仅写入独立快照。文档称 MCP 服务不访问文件系统。

权限
  • 读取配置工作区中的状态文件。
  • 使用 freeze 时写入配置的冻结目录。
数据处理
  • 配置路径相对于 workspaceRoot;路径穿越和符号链接逃逸会被拒绝。
  • MCP 证明服务接收受大小限制的内联文档,单份最多 1 MiB,拒绝疑似密钥字段,且不回显状态正文。
凭据
  • 冻结操作要求提供刚从 status 观察到的哈希,作为乐观锁凭据。

局限

  • 仅适用于已有的 2origin/0.2 任务状态文档,不是通用记忆库、信任扫描器或活动日志。
  • 不会更新实时状态;freeze 是唯一写入操作。
  • 需要 Node.js 22+。

DSHub 已核对

  • 已验证固定提交源和 Bundle 结构。
  • 清单声明兼容 DSH 0.1.2-alpha.4 起的版本,并要求 Node.js 22+。
  • 仓库提供 test、check、插件 smoke 和 MCP smoke 命令。

DSHub 未核对

  • 未实际执行安装。
  • 未独立执行运行时行为、smoke 测试或所述 MCP 防护。
  • 未找到 0.2.1 版本的 npm 注册表分发。

固定版本安装

安装 dsh-2origin

这个Plugin Bundle没有 DSH Plugin 安装操作,请根据源码文档使用真实交付方式。

访问源码项目

维护者原文

项目 README

查看 commit bbb0414 对应的 README
维护者编写的上游内容原文于 2026/9/6README.md 获取,正文和仓库相对媒体固定到 commit bbb0414abc74,内容哈希为 8967199ca7ff。以下是未经 DSHub 翻译的上游原文,语言可能与当前页面不同;第三方托管的 badge 可能独立更新。

dsh-2origin

CI MIT license Node.js 22+ Awesome DSH Plugins

Evidence-first 2Origin state projection, semantic diff and immutable freeze for 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

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

Configure the workspace explicitly:

- 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.
  • dsh_2origin_diff — read-only semantic diff against a complete candidate JSON document. Version, timestamp, actor and stored hash do not create fake content changes.
  • dsh_2origin_freeze — requires the hash just observed from status, refuses stale state, creates a content-addressed snapshot with exclusive creation, and verifies it by reading it back. Repeating the identical request is idempotent.

CLI

dsh-2origin status --root C:/project --state demo/task/task.origin.json
dsh-2origin diff --root C:/project --state demo/task/task.origin.json --candidate next.json
dsh-2origin freeze --root C:/project --state demo/task/task.origin.json --expect <sha256>

The content hash is compatible with 2origin/0.2: SHA-256 over stable canonical JSON, excluding version, updated_at, content_hash, and actor.

Codex and MCP

The repository contains .codex-plugin/plugin.json and an independent stdio MCP server:

  • state_proof verifies one bounded inline state document and returns only integrity, hashes, counts and violations.
  • state_diff_proof compares two bounded inline documents and returns changed fields plus content-addressed value/item hashes.

The MCP server never reads or writes the filesystem, rejects secret-shaped keys, caps each document at 1 MiB, and does not echo state prose. It intentionally does not expose freeze: filesystem writes remain on the explicitly configured DSH/CLI surfaces.

Boundaries

The plugin deliberately does not update the live state. Freeze is the only write action and targets a separate snapshot directory. Live-state mutation needs schema and fact-lifecycle policy from its owning system; duplicating a weaker writer here would create a second truth.

This is not a general memory store, plugin trust scanner or activity logger. Tools such as Agent Passport, generic state files and workspace ledgers solve adjacent problems; dsh-2origin is narrowly the verification adapter for an existing 2origin/0.2 task-state document.

Verify

npm test
npm run check
npm run smoke:plugin
npm run smoke:mcp
python C:/Users/ZhuanZ/.codex/skills/.system/plugin-creator/scripts/validate_plugin.py .

MIT

有意识地管理

安装与管理

前置条件与目标 Profile

目标 deepseek-harness Profile

交付方式 Git Bundle — dongsheng123132/dsh-2origin#bbb0414abc7462d574b45f067e29b8c82e610f13

验证、更新与移除

显示生命周期命令
验证
dsh plugin --profile deepseek-harness list

兼容性与访问范围

DeepSeek Harness bundle; Node.js 22+ required >=0.1.2-alpha.4; listed compatible through 0.1.2-rc.1

检查兼容性证据

风险事实

filesystem-write

Freeze writes a content-addressed snapshot to the configured snapshot directory; live state is not updated.

证据
state-input

The configured workspace root and state-file path determine which task-state document the DSH and CLI surfaces inspect.

证据
证据与编辑审查Manifest、Bundle patch、分发与新鲜度

不可变证据

审查状态与源码活动

AI 已审查

请从不可变 Git Bundle 安装,不要依赖 npm 可用性。

AI 审查于 2026/9/9 UTC 14:05GitHub 事实核对日期: 2026/9/9 UTC 14:05

自当前证据基线以来,没有记录到重要源码变化。

下一步

按 Plugin 安装流程操作

订阅重要变化: dsh-2origin