dsh-engineering-control-plane
Manifest validDeepSeek Harness 工程任务编排与发布门禁插件,支持 /mission 指令、任务路由、计划执行、验证和状态跟踪。 | Engineering mission orchestration and release-gate plugin for DeepSeek Harness with /mission routing, planning, execution, verificati
DSH Engineering Control Plane
DeepSeek Harness 的工程任务编排与发布门禁插件 · 中文默认,English below
中文
这是什么
dsh-engineering-control-plane 为 DeepSeek Harness 提供受治理的工程任务执行。它把一次实现、修复、重构或发布验证请求固定为一个可追踪的 Mission,并由宿主负责计划、执行、验证、证据和质量门禁。
它适合希望把“让 Agent 改代码”变成可审计流程的团队:每个 Mission 都有明确的身份、Attempt、策略快照、验证结果和最终状态。
如果 Agent 能改代码,却不能回答“谁改的、改前是什么、证据是否完整、为什么最终放行”,那只是不可审计的写操作。Control Plane 把这条边界固定为 Mission → Evidence → Quality Gate → Receipt。
Mission 如何流转
Mission 只按单向阶段推进;角色输出、验证结果、外部 Assurance 和工作区指纹先形成摘要绑定的 Evidence,再由确定性 Quality Gate 计算终态。revision CAS、执行租约与仓库写租约负责拒绝并发漂移,取消和恢复也必须经过持久化协议。
主要能力
- 一个工作区同时只允许一个非终态 Mission。
- 在启动时冻结仓库身份、分支、HEAD 和有效策略。
- Planner、Tester、Reviewer 只读;Developer 不能提交、切换分支或改写历史。
- 验证命令来自宿主配置,不由模型临时编造。
- 只有确定性 Quality Gate 可以产生
APPROVED。 - 缺失、损坏、截断或不确定的证据会 fail closed。
- 外部 Assurance Subject 同时绑定 Git 状态与 baseline→produced change 的逐字节指纹。
- 支持可恢复的
BLOCKED、REWORK_REQUIRED、取消和重启恢复。 - 持久化 SQLite、Evidence 清单和不可变版本化 Receipt/Snapshot。
3 分钟最短安装(Harness Web)
要求 Node.js ^22.19.0 || >=24.0.0,以及可用的 DeepSeek Harness CLI。先安装 Control Plane,再安装可选的 Security Assurance Provider:
- 下载对应 Release 的 tarball。
- 用下面的命令安装并检查最终组合。
- 在目标 Git 仓库目录启动 Harness Web。
dsh plugin --profile web add D:\Downloads\dsh-engineering-control-plane-0.1.13.tgz
dsh --profile web --dump-config
dsh web
从 GitHub 下载:v0.1.13 Release。如果两个插件一起使用,Control Plane 必须先安装,因为它提供共享的不变量注册表。
默认配置会把 Harness 启动时的当前工作目录绑定为 current-workspace,并冻结以下默认验证命令:
pnpm test
pnpm run typecheck
pnpm run build
Python/uv 仓库可以从随包发布的
profiles/erii-python.cordis.patch.example.yml
开始配置。该示例要求显式设置 DSH_ERII_PYTHON、位于工作树之外的
DSH_ERII_TEMP_ROOT 和预热的离线 UV_CACHE_DIR,并固定 ERII Dogfood 已验证的生命周期测试、主测试、
continuity-review、凭据扫描、Ruff、Compileall、重构清单和离线构建范围。请复制到目标
Harness Profile 后运行 --dump-config,不要用它自动替换其他仓库的宿主策略。
启动 Harness 时,请把终端当前目录设为要治理的 Git 仓库。安装后先执行 dsh --profile web --dump-config 检查最终组合,再执行 dsh web。
用户如何调用
插件同时支持被动路由和主动指令:
被动调用(推荐):直接描述工程目标,模型会把实现、修复、迁移和发布验证请求路由到 Mission 工具。
请为当前仓库实现这个功能,并在完成后运行完整验证。
请修复这个问题,所有修改必须经过 Mission 发布门禁。
主动调用:在 Harness Web 或 CLI 输入:
/mission 为当前仓库执行一次发布前验证,要求测试、类型检查和构建全部通过
如果确实不需要治理流程,可以明确写出“直接模式,不创建 Mission”。插件不会在委派的 Mission 子角色中创建嵌套 Mission。
工具与生命周期
| 工具 | 用途 | 是否改变状态 |
|---|---|---|
mission_start | 冻结目标、策略和 Attempt,创建 Mission | 是 |
mission_status | 读取权威快照、Gate 和合法下一步 | 否 |
mission_resume | 从 BLOCKED 恢复同一 Attempt | 是 |
mission_cancel | 先停止子任务与外部 Provider,再终态取消 | 是 |
mission_rework | 从 REWORK_REQUIRED 创建新 Attempt | 是 |
所有变更操作都必须带上 mission_status 返回的精确 revision。过期 revision 会被拒绝,不会自动合并或重试。
典型生命周期:
mission_start
→ planner → developer → tester → reviewer
→ evidence capture → quality gate
→ APPROVED / REWORK_REQUIRED / BLOCKED / CANCELLED
只读完整性检查
安装包提供不修改状态的 doctor 命令,用于检查 SQLite 身份、Schema、Lease、Evidence 引用和摘要绑定:
dsh-control-plane doctor --pretty
dsh-control-plane doctor --dsh-home D:\path\to\dsh-home --pretty
退出码:0 表示通过,1 表示发现完整性或可用性问题,2 表示命令本身无法执行。doctor 不会创建、迁移、修复、清空或删除数据。
持久化与入口
持久化目录默认为:
$DSH_HOME/control-plane/
├── control-plane.sqlite
└── missions/<mission-id>/attempt-####/records/<record-id>.json
公开入口:
| 入口 | 作用 |
|---|---|
dsh-engineering-control-plane | Cordis Service 与 Kernel 契约 |
dsh-engineering-control-plane/tools | 五个严格模型工具 |
dsh-engineering-control-plane/client | 浏览器安全的版本化投影缓存,不拥有权威状态 |
dsh-engineering-control-plane/invariant | 启动就绪与不变量诊断 |
dsh-engineering-control-plane/assurance-provider | 可选的 Security Assurance Provider 契约 |
与 Security Assurance 联用
安装 dsh-security-assurance 后,Control Plane 会按精确的 Provider ID、版本和 current-workspace 绑定调用安全评估,并把 baseline HEAD、Git 状态指纹和逐字节产出变更指纹冻结进执行 Subject。安全评估结果只满足外部安全义务;最终 APPROVED 仍由 Control Plane 根据全部工程证据和 Reviewer 结果计算。
两个插件不共享 SQLite、可写 Evidence 目录、事务句柄或 Kernel 对象。
v0.1 边界
- 当前发布包面向 Harness
0.1.2-alpha.1(主目标),并声明兼容0.1.2-alpha.2至0.1.2-rc.1、0.1.3-alpha.1、0.1.3-alpha.2、0.1.5-alpha.1、0.1.5-alpha.2、0.1.5-rc.1与0.1.5-rc.2;该显式已验证集合由 Security Assurance 仓的 Harness Compatibility 双插件矩阵每日验证,Harness 仍处于开发预览阶段。 - 默认验证配置是 pnpm 项目;其他构建系统需要在宿主 Profile 中替换完整的 repository/config 行。
client是投影缓存,不是浏览器端 Mission Store;传输和 UI 由宿主集成。- 该插件负责工程治理,不等同于漏洞扫描器;安全评估由可选的 Security Assurance 插件负责。
开发与验证
pnpm install
pnpm run lint
pnpm run typecheck
pnpm test
pnpm run build
pnpm pack:dry-run
pnpm pack:profile-smoke
pnpm release:check
当前 main 分支发布门禁已通过:33 个测试文件、154 个测试,并覆盖静态检查、类型检查、构建、打包以及 fresh Harness Profile 安装与 Web 探针。公开 CI 在 Ubuntu、macOS 和 Windows 上重复该门禁。
设计依据和完整决策记录见:CONTEXT.md、docs/adr/、docs/implementation-specification.md。安全问题请参阅 SECURITY.md。
English
What it is
dsh-engineering-control-plane is a governed engineering workflow plugin for DeepSeek Harness. It turns an implementation, fix, refactor, migration, or release-validation request into an auditable Mission with explicit policy, attempts, evidence, verification, and a deterministic Quality Gate.
Mission at a glance
Each Mission advances through one ordered phase sequence. Digest-bound role output, verification, optional external assurance, and workspace evidence feed the deterministic Quality Gate; revision CAS and separate execution/write leases reject stale or conflicting mutation.
If an agent can change code but cannot answer who changed it, what was frozen beforehand, whether the evidence is complete, or why the result was released, that is an unauditable write operation. Control Plane fixes the boundary as Mission → Evidence → Quality Gate → Receipt.
Highlights
- One non-terminal Mission per canonical worktree.
- Repository identity, branch, HEAD, and Effective Policy are frozen at start.
- Planner, Tester, and Reviewer are read-only; Developer cannot commit, switch branches, or rewrite history.
- Verification commands come from host-owned configuration.
- Only the deterministic Quality Gate can produce
APPROVED. - Missing, corrupt, truncated, or indeterminate evidence fails closed.
- External Assurance Subjects bind both Git state and a byte-exact baseline-to-produced-change fingerprint.
- Durable SQLite state, Evidence manifests, immutable Receipts, and versioned Snapshots.
Three-minute install in Harness Web
Requires Node.js ^22.19.0 || >=24.0.0 and the DeepSeek Harness CLI:
- Download the tarball from the matching Release.
- Install it and inspect the composed profile with the commands below.
- Start Harness Web from the Git repository you want to govern.
dsh plugin --profile web add D:\Downloads\dsh-engineering-control-plane-0.1.13.tgz
dsh --profile web --dump-config
dsh web
Download the package from the v0.1.13 Release. Install this plugin before Security Assurance when using both, because it supplies the shared invariant registry. The launcher working directory becomes current-workspace; default checks are pnpm test, pnpm run typecheck, and pnpm run build.
Python/uv repositories can start from the packaged
profiles/erii-python.cordis.patch.example.yml.
It requires explicit DSH_ERII_PYTHON, an out-of-worktree
DSH_ERII_TEMP_ROOT, and a pre-warmed offline UV_CACHE_DIR; it preserves the complete ERII dogfood scope across tests,
secret scanning, Ruff, Compileall, inventory validation, and offline builds. Copy it into the target
Harness Profile and inspect --dump-config; it is an explicit host-policy example, not an
automatic replacement for other repositories.
Invocation
Users can describe an engineering goal in natural language, or explicitly run:
/mission Run release validation for the current repository; tests, typecheck, and build must pass.
Use “direct mode, do not create a Mission” when governance is intentionally not required. Nested Mission creation is rejected inside delegated Mission roles.
The package exposes mission_start, mission_status, mission_resume, mission_cancel, and mission_rework. Every mutation requires the exact revision returned by mission_status; stale control intent is rejected.
Read-only doctor
dsh-control-plane doctor --pretty
The doctor checks SQLite identity, schema, leases, Evidence references, and digest bindings without creating, repairing, migrating, clearing, or deleting state. Exit codes are 0 (pass), 1 (issue found), and 2 (invocation failure).
Public entries
dsh-engineering-control-plane: Cordis Service and Kernel contractsdsh-engineering-control-plane/tools: strict model toolsdsh-engineering-control-plane/client: browser-safe projection cachedsh-engineering-control-plane/invariant: startup diagnosticsdsh-engineering-control-plane/assurance-provider: optional Security Assurance contract
When Security Assurance is selected, the Control Plane freezes the baseline HEAD, Git-status fingerprint, and byte-exact produced-change fingerprint into the post-implementation execution Subject. The Provider can independently verify the exact Mission output without receiving a repository path.
The current package targets Harness 0.1.2-alpha.1 and declares the exact additional verified versions 0.1.2-alpha.2 through 0.1.2-rc.1, 0.1.3-alpha.1, 0.1.3-alpha.2, 0.1.5-alpha.1, 0.1.5-alpha.2, 0.1.5-rc.1, and 0.1.5-rc.2. The Security Assurance-owned Harness Compatibility matrix verifies this closed set.
Development
pnpm install
pnpm run lint
pnpm run typecheck
pnpm test
pnpm run build
pnpm pack:dry-run
pnpm pack:profile-smoke
pnpm release:check
The current main branch gate passes 33 test files and 154 tests, plus linting, typecheck, build, packaging, a fresh Harness Profile installation, and a live Web probe. Public CI repeats the gate on Ubuntu, macOS, and Windows. The Harness Compatibility workflow also validates the dual-plugin matrix against the declared Harness versions. See CONTEXT.md, docs/adr/, and SECURITY.md for the domain model, decisions, and security policy.
License
Comments
Loading…
Similar plugins
by beijingwahw
DeepSeek Companion — DeepSeek Harness 官方伴侣插件:对话导出/交接摘要/成本优化/全局检索 + 执行轨迹分析、Prompt 工程工作台、多模型竞技场、任务编排、安全与审计(E–J 九大模块,Cordis 插件化)。
★ 4
MIT
TypeScript
Sep 19, 2026
dsh plugin --profile web add dsh-companionby csiroqa
DeepSeek Harness(DSH)定时任务 + 状态监控插件:按 cron 时间表自动触发 Agent 执行任务,/status 与设置页仪表盘查看系统与 harness 综合状态。Scheduled tasks (cron) + status monitoring plugin for DeepSeek Harness.
★ 3
MIT
TypeScript
Aug 23, 2026
dsh plugin --profile web add @dsh-external/dsh-scheduleby zriyox
一句话大需求先别急着跑:拦一下问你要不要先规划,自动生成带验收清单的 plan.md 再开工 — DeepSeek Harness 插件 / Catches one-sentence mammoth tasks and scaffolds plan.md + a capped goal first
★ 3
MIT
TypeScript
Aug 15, 2026
dsh plugin --profile web add dsh-goal-scaffoldby jkrandom-sudo
Security audit for DeepSeek Harness plugins: static permission profile with file/line evidence + a runtime sentinel gating credential access and unknown-host egress · DSH 插件安全审计:静态权限画像(附文件/行号证据)+ 运行时哨
★ 4
↓ 143/wk
MIT
TypeScript
Sep 11, 2026
dsh plugin --profile web add dsh-plugin-auditby alex04130
DeepSeek Harness 扩展套件:运行时注入器、子代理派发与模型路由策略、插件市场/技能/插件管理面板、浏览器桥与 MCP 集成。
★ 6
↓ 19/wk
MIT
JavaScript
Sep 7, 2026
dsh plugin --profile web add dsh-forgeby hoyyang
思维导图式项目规划可视 + 最强防跑偏:计划→模块→任务树/DAG、执行序号、Agent GPS 站位、改图人审门、git 交叉核对、阻断级漂移防护(DeepSeek Harness 插件)
★ 0
BSD-3-Clause
TypeScript
Sep 16, 2026
dsh plugin --profile web add @dsh-external/dsh-plan-board