返回目录
Agent 与会话 插件

dsh-plugin-deposon

zeroandcat/dsh-plugin-deposon

Pre-registered memory-probe experiment harness: frozen criteria, self-contained readings packages, dual-review evidence chain, Lean+Python dual gate implementations. v0.x preview.

Stars
0
Forks
0
Issues
0
更新
4 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:zeroandcat/dsh-plugin-deposon

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-plugin-deposon

A DeepSeek Harness (dsh) plugin: a pre-registered experiment harness for probing LLM memory and selection behavior, installable and usable from inside dsh. Frozen criteria, self-contained readings packages, a dual-review evidence chain, and Lean + Python dual implementations of the gate arithmetic.

What makes this harness unusual:

  • Pre-registered criteria, frozen before every run. Gate definitions, thresholds, and failure paths are written down first; no post-hoc calibration inside a round. Negative controls must fail loud.
  • Self-contained readings packages. Every round ships a package that a third party can recompute from the package alone: MANIFEST with content hashes, frozen criteria and tool copies, per-op ledgers, logs, and a recompute script. If a number cannot be recomputed, it is not a reading.
  • Dual implementations of the gates. Gate arithmetic exists as Python (execution) and as Lean 4 theorems (machine-checked adjudication, core-only, zero sorry debt); the two are cross-checked per round.
  • Judgment-line v1.1 interfaces. Three plugin-faced pins for verdict hygiene: a measure-locator gate (a judgment must declare its measure and granularity, recompute-checked — flattened-unit mis-reads are rejected before adjudication), a raw-full logging obligation (accepted, rejected, and parse-failed responses all carry verbatim text), and three-band adjudication (only the pre-registered primary band adjudicates; reference and annotation bands report side-by-side, never decide — machine-checked in Lean). See docs/judgment-v11.md.
  • Joint readings. Readings are a joint product of model x harness; every report line carries the locked-baseline self-check line (models / seed / frozen faces / tool hashes).
  • The memory harness proper ships in-repo — two layers, not just tools. (a) Core layer: the condensate-field container formalized in Lean 4 (harness/NingziContainer.lean, core-only) and instantiated as an append-only external ledger with DR-4 render-surface semantics (reads return rendered key: text lines, never raw records); (b) interface layer: a standalone stdio MCP server (mcp/, protocol 2024-11-05) exposing deposon_memory_write / deposon_memory_read as a thin surface over the core. The core runs import-direct with zero transport dependencies and survives model swaps and process restarts by construction; its self-test runs in CI.

Status: v0.x preview

This is an early preview. Expect compatibility-breaking changes without notice. The core chain runner module is staged for a following release; the recompute path is fully functional. No public verdict claims are made from this repository until the terminal review of the experiment series.

Install as a dsh plugin

This repository follows the dsh plugin conventions (dsh-plugin-<name> repository naming, the dsh-plugin topic for discoverability, an npm package declaring dsh.bundle.patch, and a Cordis apply(ctx, config) entry):

# from a running dsh agent / Web UI plugin manager:
dsh plugin add https://github.com/zeroandcat/dsh-plugin-deposon

# or from a local clone (path: spec):
dsh plugin add path:./dsh-plugin-deposon

Once installed, the plugin mounts as bundle entry deposon (see cordis.patch.yml) and exposes the gates self-test as an agent-callable surface (deposon_gate_check / /deposon-gate-check). Configuration keys (python, timeoutMs) are consumed via the patch config or DEPOSON_* environment variables.

Desk-level install verification (no network beyond GitHub): npm pack --dry-run (packaged bundle integrity), git ls-remote (the reachability precheck dsh's plugin manager runs before installing), and node tests/test_plugin_load.mjs (loads the plugin on a mock Cordis context and actually invokes the tool body — 14 checks, includes running the gates self-test).

Preview-era note: dsh is a developer preview with announced compatibility-breaking changes. The apply contract, bundle declaration, and config consumption here are the stable surface; agent-tool registration probes known API shapes defensively.

Quickstart (recompute)

# with a readings package directory at hand:
READINGS_PACKAGE_DIR=/path/to/readings-package python scripts/g6f_recalc.py
# gate arithmetic self-test (pure math, no data needed):
python tests/test_gates.py

Repository layout

path content
harness/ launch-family entry points (env-parameterized) + NingziContainer.lean (condensate-field container, Lean 4 formalization, core-only)
mcp/ memory harness proper as a standalone stdio MCP instance: core layer (external append-only ledger, DR-4 render surface) + deposon_memory_write/deposon_memory_read tool surface + self-test (runs in CI)
frozen/ frozen faces (blind K_h mapping, seed)
gates/ gate specifications: Lean + Python dual implementations, incl. judgment-line v1.1 interfaces (gauge / raw-full / three-band)
plugin/ dsh plugin entry (Cordis apply(ctx, config))
cordis.patch.yml dsh bundle declaration (profile patch consumed by dsh plugin manager)
package.json npm package: dsh plugin metadata (dsh.bundle.patch, engines.dsh)
mocks/ mock certifications incl. PC-lockin negative control
scripts/ recompute script family
docs/ evidence-round pointers, locked-baseline spec, package spec, alignment map
BENCHMARK.md gate table & joint-readings disclosure
SAFETY.md run-safety clauses (PR-1/2/3, stop-loss semantics)

Readings data never enters this repository (artifacts policy, see .gitignore and CONTRIBUTING.md).

Documentation

License

MIT. (Apache-2.0 kept as a recorded fallback option.)

Citation

@misc{dsh-plugin-deposon,
  title  = {dsh-plugin-deposon: a pre-registered memory-probe experiment harness as a DeepSeek Harness plugin},
  note   = {v0.x preview; joint readings of model x harness; recompute-from-package},
  year   = {2026},
  url    = {https://github.com/zeroandcat/dsh-plugin-deposon}
}

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类Agent 与会话
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: memory。