前言¶
DSH 插件生态强调「一切皆插件」。对长任务来说,一个常见问题是:模型可见的 Session、plan、Todo 或子代理状态,可能和真实已提交的动作、工具结果或恢复点不一致。经过 compaction、进程恢复或子代理生命周期后,后续操作可能落在过期的 basis 上。
dsh-plan-lattice 是一个面向 DeepSeek Harness(DSH)长程智能体的 passive continuity layer,用来处理这类执行时漂移。DSH 社区目录是独立站点,与 DeepSeek / 幻方无官方从属关系,不应理解为官方应用商店。
这是什么¶
维护者为 1052326311,许可证为 MIT。它覆盖 DSH 原生的 plan、Todo、Session、compaction 和 subagent lifecycle,目标是做执行时 drift control。
name: dsh-plan-lattice
owner: 1052326311
license: MIT
核心功能¶
默认 auto:只恢复 DSH 已记录授权¶
默认 auto 模式不添加 Lattice tools、state、contract、graph 或 guard。它只在已提交的 surfaceOp.replace 将来源从模型可见 Session 移除时,恢复 DSH 已经记录的 exact authority。
这意味着默认路径不主动引入图控制,也不引入 one-use action bases;它处理的是「来源已经从模型可见会话中移除」之后的恢复场景。
显式 full-Lattice:递归图与一次性动作¶
递归图和 one-use action bases 只作为 explicit full-Lattice control 可用。
在显式 full-Lattice 控制下,资料描述了两类边界处理:
- 以已接受 contract 为界,限制后续动作;覆盖隐式英文和中文变更。
- 在 reframe 后处理旧图分支,并与新 contract 对齐;覆盖每个未归档节点。
这些是 explicit full-control 声明,不属于 automatic-mode 声明。
lattice_status¶
lattice_status 可返回至多三条 recent mechanical receipts,并通过真实 Harness ToolRuntime 的 model-facing content path 渲染以下身份:
attempt
call
argument
basis
result
工件加载与 schema 观察¶
公开 RC.6 工件可加载到 official Harness rc.7 与当前可安装的 0.1.1-rc.2;CI 观察到全部 16 个 lattice_* tool schemas。
测试证据与边界¶
资料中给出的 real Harness mechanism stress test 结果为:
unsafe stale-basis mutations:
native: 12/12
Plan Lattice: 0/12
matched legitimate controls:
native: 7/7
Plan Lattice: 7/7
real SIGKILL recovery test 结果为:
unsafe post-SIGKILL continuations:
native: 2/2
Plan Lattice: 0/2
matched post-restart controls:
native: 2/2
Plan Lattice: 2/2
以下边界需要注意:
V20、V18、V17被保留为无效或负面结果;不能据此做质量或提升声明。v3 external-model study已冻结,但没有针对当前运行时执行;不能据此做通用编码质量提升或排名声明。- official Harness
alpha.1的 source-contract proof 不是 install compatibility,也不是 endorsement。
安装与启用¶
资料未提供官方安装命令,因此这里不给出拼接出的安装命令。
可核实的运行与版本信息如下:
node: >=22.19.0
license: MIT
README: v0.3.0 为 latest stable release
README: v0.4.0-rc.6 为 current public runtime candidate
README: checkout 包含 unreleased rc.8 native-continuity work
package.json: version 0.4.0-rc.8
由于 README 与 package.json 的版本状态不完全一致,且 rc.8 被描述为未发布的 native-continuity 工作,安装前应先确认目标版本,并阅读源码。
典型用法¶
以下为能力层面的用法描述,不是可复制命令:
- 默认
auto模式下,关注已提交surfaceOp.replace将来源从模型可见Session移除后,DSH 已记录授权的恢复。 - 若需要递归图或 one-use action bases,启用 explicit full-Lattice control。
- 在恢复或调试时,使用
lattice_status查看至多三条 recent mechanical receipts。
适用场景与注意¶
适合:
- DSH 长任务经过
compaction、Session 恢复或子代理生命周期后,需要减少 stale basis 引发的后续动作风险。 - 在进程被
SIGKILL后,查看 mechanical receipts,并避免 unsafe post-SIGKILL continuations。 - 在 explicit full-Lattice 模式下处理图分支 reframe、contract 对齐和后续动作边界。
注意:
- 插件以当前
dsh进程权限运行;安装前应检查源码、许可证与依赖。 - 默认
auto不添加 Lattice tools、state、contract、graph 或 guard;显式 full-control 的能力不自动等同于自动模式能力。 - 当前资料未提供安装命令,也未给出唯一可确认的稳定版本。
链接¶
catalog: https://www.skillhub.cn/plugins/1052326311/dsh-plan-lattice
github: https://github.com/1052326311/dsh-plan-lattice