ld-vibe-harness 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.codex-plugin/plugin.json +5 -4
- package/.mcp.json +6 -0
- package/CHANGELOG.md +155 -73
- package/README.en.md +114 -104
- package/README.md +153 -145
- package/adapters/antigravity/installer.js +26 -8
- package/adapters/codex/agent-profiles.js +42 -0
- package/adapters/codex/installer.js +20 -8
- package/adapters/codex/native-plugin.js +104 -0
- package/adapters/dsh/index.js +376 -240
- package/adapters/dsh/installer.js +8 -8
- package/adapters/dsh/package.json +2 -2
- package/agents/ldvh-experience-recorder.md +3 -4
- package/agents/ldvh-post-work-reviewer.md +0 -1
- package/agents/ldvh-pre-action-reviewer.md +0 -1
- package/agents/ldvh-researcher.md +1 -2
- package/cli/ldvh.mjs +173 -9
- package/cordis.patch.yml +1 -1
- package/docs/ARCHITECTURE.md +40 -39
- package/docs/DETAIL.md +39 -0
- package/docs/PRIVACY.md +7 -6
- package/docs/screenshots/01-focus.png +0 -0
- package/docs/screenshots/02-facts.png +0 -0
- package/docs/screenshots/03-diagnostics.png +0 -0
- package/docs/screenshots/04-help.png +0 -0
- package/hooks/_client.mjs +1 -12
- package/hooks/codex.json +75 -0
- package/hooks/codex.mjs +108 -0
- package/hooks/hook-engine.js +849 -86
- package/lib/capture-notice.js +8 -22
- package/lib/client.js +1558 -0
- package/lib/codex-agent-roles.js +8 -0
- package/lib/codex-host-seams.js +51 -0
- package/lib/codex-session.js +154 -0
- package/lib/commit-validation.js +4 -61
- package/lib/data-paths.js +73 -68
- package/lib/experience-arming.js +44 -18
- package/lib/gate-events.js +55 -2
- package/lib/git-gate-runner.js +87 -35
- package/lib/goal-anchor.js +17 -45
- package/lib/goal-tools.js +4 -26
- package/lib/goal-writer.js +5 -18
- package/lib/governed-projects.js +18 -7
- package/lib/guidance-budget.js +2 -2
- package/lib/guidance-text.js +8 -7
- package/lib/hook-manager.js +42 -14
- package/lib/hook-repair.js +77 -13
- package/lib/host-api.js +7 -3
- package/lib/host-doctor.js +174 -0
- package/lib/host-seams.js +921 -869
- package/lib/idle-settings.js +1 -4
- package/lib/intent-tools.js +11 -16
- package/lib/intent-trace-tools.js +484 -0
- package/lib/intent-writer.js +12 -45
- package/lib/ldvh-tools.js +93 -78
- package/lib/norm-tools.js +1 -1
- package/lib/object-identifier.js +0 -2
- package/lib/object-reference.js +0 -2
- package/lib/operation-declarations.bundle.json +30 -66
- package/lib/pitfall-tools.js +75 -9
- package/lib/recall-criteria.bundle.json +2 -69
- package/lib/recall-criteria.js +0 -2
- package/lib/recall-evaluation.js +301 -0
- package/lib/recall-injection.js +2 -6
- package/lib/recall-synonyms.js +1 -3
- package/lib/report-tools.js +140 -74
- package/lib/report-writer.js +79 -17
- package/lib/research-consult-tools.js +204 -19
- package/lib/research-consult.js +49 -27
- package/lib/research-session.js +124 -13
- package/lib/review-ask-tool.js +533 -437
- package/lib/review-ask.js +337 -317
- package/lib/review-dispatch-template.js +9 -0
- package/lib/review-receipt-tools.js +300 -0
- package/lib/session-signature.js +356 -298
- package/lib/source-recall.js +6 -16
- package/lib/web-mount.js +497 -488
- package/lib/web-preferences.js +2 -2
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +136 -101
- package/plugin-specs/experience-accumulation-system-foundation.yaml +7 -27
- package/plugin-specs/fact-model-common.yaml +3 -14
- package/plugin-specs/gate-consult-system-foundation.yaml +44 -33
- package/plugin-specs/goal-fact-type.yaml +20 -67
- package/plugin-specs/goal-planning-system-foundation.yaml +27 -98
- package/plugin-specs/intent-fact-type.yaml +13 -22
- package/plugin-specs/intent-record-system-foundation.yaml +1 -2
- package/plugin-specs/ldvh-root.yaml +6 -6
- package/plugin-specs/norm-fact-type.yaml +1 -1
- package/plugin-specs/pitfall-fact-type.yaml +5 -49
- package/plugin-specs/report-fact-type.yaml +23 -35
- package/plugin-specs/research-system-foundation.yaml +18 -15
- package/plugin.json +4 -4
- package/rules/AGENTS.md +4 -4
- package/server/local-daemon.js +86 -28
- package/server/mcp-server.js +299 -76
- package/server/tool-registry.js +0 -23
- package/skills/ldvh-governance-flow/SKILL.md +28 -16
- package/skills/ldvh-onboarding/SKILL.md +4 -3
- package/web/api-js/app.js +172 -0
- package/web/api-js/index.js +4 -0
- package/web/api-js/routes/auth.js +15 -0
- package/web/api-js/routes/changelog.js +38 -0
- package/web/api-js/routes/cognition.js +484 -0
- package/web/api-js/routes/diagnostics.js +56 -0
- package/web/api-js/routes/docs.js +51 -0
- package/web/api-js/routes/federation.js +129 -0
- package/web/api-js/routes/objects.js +244 -0
- package/web/api-js/routes/project-files.js +361 -0
- package/web/api-js/routes/settings.js +57 -0
- package/web/api-js/server.js +21 -0
- package/web/api-js/services/crossWorktreeMerger.js +80 -0
- package/web/api-js/services/factFieldContract.js +83 -0
- package/web/api-js/services/facts.js +363 -0
- package/web/api-js/services/git.js +257 -0
- package/web/api-js/services/governanceScope.js +174 -0
- package/web/api-js/services/governedProjectsSettings.js +218 -0
- package/web/api-js/services/localFactReader.js +346 -0
- package/web/api-js/services/projectFiles.js +119 -0
- package/web/api-js/services/pytools.js +7 -0
- package/web/api-js/services/requestScope.js +40 -0
- package/web/api-js/services/runtimeDiagnostics.js +405 -0
- package/web/api-js/services/time.js +63 -0
- package/web/api-js/services/typeColors.js +12 -0
- package/web/api-js/services/workspaceWorktrees.js +146 -0
- package/web/dist/assets/index-BzWFRVF4.js +573 -0
- package/web/dist/assets/index-BzWFRVF4.js.gz +0 -0
- package/web/dist/assets/index-DVsO2qQa.css +1 -0
- package/web/dist/assets/index-DVsO2qQa.css.gz +0 -0
- package/web/dist/assets/ldvh-plugin-icon-DFJztt0E.png +0 -0
- package/web/dist/index.html +15 -0
- package/web/dist/index.html.gz +0 -0
- package/web/dist/ldvh-plugin-icon-180.png +0 -0
- package/web/dist/ldvh-plugin-icon-32.png +0 -0
- package/web/shared-js/factChangeLog.js +71 -0
- package/web/shared-js/factIdentity.js +4 -0
- package/web/shared-js/gateCorrelation.js +10 -0
- package/web/shared-js/projectColors.js +29 -0
- package/web/shared-js/signature.js +34 -0
- package/web/shared-js/timestamp.js +83 -0
- package/.claude-plugin/plugin.json +0 -16
- package/agents/ldvh-friction-recorder.md +0 -27
- package/lib/aux-task-registry.js +0 -129
- package/lib/friction-discovery.js +0 -383
- package/lib/friction-failure-registration.js +0 -56
- package/lib/friction-observation-buffer.js +0 -889
- package/lib/friction-promotion-lock.js +0 -124
- package/lib/friction-review-promotion.js +0 -193
- package/lib/friction-tools.js +0 -829
- package/lib/friction-writer.js +0 -1123
- package/lib/milestone-tools.js +0 -684
- package/lib/milestone-writer.js +0 -707
- package/lib/verification-run.js +0 -195
- package/plugin-specs/friction-fact-type.yaml +0 -333
- package/plugin-specs/friction-settlement-system-foundation.yaml +0 -334
- package/plugin-specs/milestone-fact-type.yaml +0 -212
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.4.0",
|
|
3
3
|
"name": "ldvh",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "把项目目标、意图、规范、报告与踩坑经验落盘为随 Git 演进的结构化事实(ldvh-base/);每轮动手前按预算只注入轻量候选索引(不灌全文、按需精读),高风险写入强制 Human 确认,支持零上下文子代理审方案、核结果与异步沉淀经验,遇外部难题先内查再请示联网取证,提交由 Git Gate 校验并附会话签名,配本地/远程 Web 看板。",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "LaoDing",
|
|
7
7
|
"url": "https://github.com/dingminhua"
|
|
@@ -12,16 +12,17 @@
|
|
|
12
12
|
"keywords": ["ldvh", "governance", "mcp", "ai-coding", "memory", "git-gate"],
|
|
13
13
|
"mcpServers": "./.mcp.json",
|
|
14
14
|
"skills": "./skills/",
|
|
15
|
+
"hooks": "./hooks/codex.json",
|
|
15
16
|
"interface": {
|
|
16
17
|
"displayName": "LDVH",
|
|
17
18
|
"shortDescription": "随 Git 演进的 AI 协作事实源与工程护栏:自动召回、人工门禁、独立复核与 Git Gate",
|
|
18
|
-
"longDescription": "AI 编程的根本矛盾在于:模型推理是概率性的、对话上下文会遗忘和稀释,而长期软件项目需要确定性的依据、边界与接续。LD Vibe Harness(LDVH)在项目仓库的 ldvh-base/ 中沉淀 Goal、
|
|
19
|
+
"longDescription": "AI 编程的根本矛盾在于:模型推理是概率性的、对话上下文会遗忘和稀释,而长期软件项目需要确定性的依据、边界与接续。LD Vibe Harness(LDVH)在项目仓库的 ldvh-base/ 中沉淀 Goal、Intent、Norm、Report、Pitfall 五类结构化事实,并在执行链上挂接四项机械保障:动手前按预算仅注入轻量候选索引(不灌全文、按需精读)、高风险写入强制 Human 确认、可选零上下文子代理行动前审查与收口前复核、以及带会话签名的 Git Gate 终闸,同时提供本地与远程 Web 看板,且在 Antigravity、Codex 与 DSH 间共享 ~/.ldvh 数据目录。",
|
|
19
20
|
"developerName": "LaoDing",
|
|
20
21
|
"category": "Engineering",
|
|
21
22
|
"capabilities": ["Interactive", "Read", "Write"],
|
|
22
23
|
"websiteURL": "https://github.com/dingminhua/ld-vibe-harness",
|
|
23
24
|
"defaultPrompt": [
|
|
24
|
-
"检查当前项目是否受 LDVH
|
|
25
|
+
"检查当前项目是否受 LDVH 管辖,并展示项目目标与待推进意图"
|
|
25
26
|
],
|
|
26
27
|
"brandColor": "#10B981",
|
|
27
28
|
"composerIcon": "./assets/ldvh-plugin-icon-128.png",
|
package/.mcp.json
CHANGED
|
@@ -3,10 +3,16 @@
|
|
|
3
3
|
"ldvh": {
|
|
4
4
|
"command": "node",
|
|
5
5
|
"args": ["./server/mcp-server.js"],
|
|
6
|
+
"env_vars": ["CODEX_HOME", "LDVH_DATA_DIR"],
|
|
7
|
+
"env": {
|
|
8
|
+
"LDVH_HOST": "codex",
|
|
9
|
+
"LDVH_BIND_HOST": "127.0.0.1"
|
|
10
|
+
},
|
|
6
11
|
"startup_timeout_sec": 20,
|
|
7
12
|
"tool_timeout_sec": 600,
|
|
8
13
|
"default_tools_approval_mode": "approve",
|
|
9
14
|
"tools": {
|
|
15
|
+
"ldvh_goal_write": { "approval_mode": "prompt" },
|
|
10
16
|
"ldvh_register_governed_project": { "approval_mode": "prompt" },
|
|
11
17
|
"ldvh_unregister_governed_project": { "approval_mode": "prompt" },
|
|
12
18
|
"ldvh_intent_write": { "approval_mode": "prompt" },
|
package/CHANGELOG.md
CHANGED
|
@@ -1,73 +1,155 @@
|
|
|
1
|
-
# 变更日志
|
|
2
|
-
|
|
3
|
-
## [0.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
### 新增
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
###
|
|
72
|
-
|
|
73
|
-
-
|
|
1
|
+
# 变更日志
|
|
2
|
+
|
|
3
|
+
## [0.4.0] - 2026-12-02
|
|
4
|
+
|
|
5
|
+
融合 Codex 原生本地插件与 DSH Host + Client 双平面,收敛为 Antigravity / Codex / DSH 三宿主共享 `~/.ldvh` 体系,扩展至 28 个模型可见 MCP 工具与 30 个公开操作声明,并修复 Antigravity Human Gate 双重请示及跨宿主看板设置一致性问题。
|
|
6
|
+
|
|
7
|
+
### 新增
|
|
8
|
+
|
|
9
|
+
- **Codex 原生本地插件接入**:新增 `.codex-plugin/plugin.json`、`hooks/codex.json`、`hooks/codex.mjs`、`~/.codex/agents/` 独立代理以及 `host setup --host codex --plugin --apply` 安装链路;支持读取本机 Codex `rollout-*.jsonl` 验证回合署名与 `server.elicitInput` 审批。
|
|
10
|
+
- **复核回执与 Intent 追溯工具**:新增 `ldvh_review_receipt`(绑定暂存内容身份的结构化复核回执)与 `ldvh_trace_intent`(已完成 Intent 的事实引用、断链与 Git 证据只读追溯),模型可见工具扩展至 28 个、公开操作声明扩展至 30 个。
|
|
11
|
+
- **经验交接、调研快照、召回评测与宿主体检**:新增 Pitfall 证据回执交接、调研会话快照 `export`/`restore`、召回评测 CLI `recall evaluate` 及宿主体检 CLI `host doctor`。
|
|
12
|
+
- **诊断关联追踪与 DSH 事件落账**:Web 诊断页新增跨渠道事件关联追踪(`web/shared/gateCorrelation.ts`),DSH 适配层包装工具执行并自动落入 `source: "dsh"` 事件账。
|
|
13
|
+
- **DSH 签名宿主通道接线(恢复旧 dsh-ldvh 做法)**:`adapters/dsh/index.js` 在 `apply()` 声明宿主为 `dsh`,并把 `ctx.get("sessionPersistence")` 交给工具注册——precheck 与受控写入的签名自查在宿主进程内经 DSH 当次会话记录取权威路由;Git Hook 独立进程仍走 DSH_* shell 通道,二者读同一份记录。
|
|
14
|
+
- **签名取值的宿主判断**:`lib/session-signature.js` 增加 `setActiveHost` / `isDshHost` / `isDshShellHost`。宿主进程只认显式声明(防继承 DSH_* 的 MCP 工具面误判),独立进程(Git Hook)认 DSH_* 环境信号;判为 DSH 时禁用 Antigravity 的 header / `LDVH_MODEL_NAME` / `active-git-session.json` 兜底,避免 DSH 提交署成 `antigravity/*`;非 DSH 时不再落到 DSH 会话日志,同时保留 Codex `codexSession` 与 `codexRouteFromShell` 优先判定。
|
|
15
|
+
- **`session-signature` 公开操作声明补齐**:规范 09 增 §5.4.1/§5.4.2 输入/结果契约与 §5.8 复核回执契约,规范 10 增 §5.9 DSH 签名宿主接缝,规范 22 增 `trace-intent` 声明;`lib/operation-declarations.bundle.json` 同步重生成(30 ops)。
|
|
16
|
+
- **DSH Client 平面迁入**:新增 `lib/client.js`,在 DSH Web 表层内注册设置页(`settings.section` 与其导航图标)、对话内嵌(`conversation.view`)与侧边栏内嵌(`betterSidebar.registerTab`,软依赖降级);`package.json` 补 `dsh.client` 声明与 `./client` 导出。
|
|
17
|
+
- **两个挂载开关**:`Config` 新增 `showInConversationTab`、`showInSidebarTab`,从属于 `webEnabled`,与其余设置同源同存。
|
|
18
|
+
- **`/ldvh/state/governance` 路由**:按 `sessionId` 查会话所属管辖项目,未登记时回落 `cwd` 解析,供 Client 平面把 iframe 定位到当前会话的项目。
|
|
19
|
+
- **`/ldvh/api/health` 回报 `webPort`**:新增 `status: "ok"` 与权威端口字段;`createWebApiProcess` 补 `currentPort()` 访问口,未预热时如实回 `0` 而非省略。
|
|
20
|
+
|
|
21
|
+
### 变更
|
|
22
|
+
|
|
23
|
+
- **设置真相源统一到共享数据根**:DSH 设置页改走 `/ldvh/api/plugin-settings` 写 `~/.ldvh/ldvh/settings.yaml`,不再用宿主 `configForms.mutate` 写 DSH profile——同一份配置不再有两个真相源,DSH 侧改动对 Antigravity / Codex 可见。
|
|
24
|
+
- **Report 精简为三种不可变更形态**:明确为 `research`(外部调研 `urls` 溯源)、`summary`(阶段总结内部锚点逐字摘录,禁 `urls`)、`reference`(未验证外部/对话参考,禁 `urls` 且免内部锚点校验),并在引导文本与看板中补齐选型适配。
|
|
25
|
+
- **收口提示与看板页面精简**:取消向 Human 输出「点位排除:…」机器拼接行;Web 帮助页移除顶部空工具栏与多余分隔线并同步 Codex 能力矩阵,设置页移除顶部页面标题并将管辖项目卡片重构为上下分层布局防止窄宽挤压。
|
|
26
|
+
- **设置面按本仓实现收敛**:移除 `idleCaptureEnabled`、`frictionDiscoveryEnabled` 与整组 `IDLE_LIMITS`——这些在 dsh-ldvh 有开关但本仓无实现,迁入即为空开关。倒计时两项保留并接上实现,见下条。
|
|
27
|
+
- **术语随事实模型对齐**:文案中的「火花」改为「意图」、「发现摩擦」随 `Friction` 系统移除一并删除。
|
|
28
|
+
- **把关倒计时接上实现(DSH 独有)**:`reviewAskTimeoutEnabled` / `reviewAskTimeoutSeconds` 原本只有设置项与结果消费,缺中间生产者;现补齐 `review-ask.js` 的配置解析、`review-ask-tool.js` 的透传与 `host-seams.js` 的 `askTimed` 调用。该能力依赖宿主 `userQuestions.askTimed`,只有 DSH 提供;其它宿主接缝返回 `null`,请求原样退回普通 `ask`,行为不变。
|
|
29
|
+
|
|
30
|
+
### 修复
|
|
31
|
+
|
|
32
|
+
- **消除 Antigravity Human Gate 双重请示**:禁止提前自造 `ask_question` 确认弹窗,在 `hooks/hook-engine.js` 新增 `isCustomHumanGateAsk` 前置拦截并同步 `rules/AGENTS.md`、引导文案与工具提示。
|
|
33
|
+
- **Human Gate 失败授权保留与经验跨进程绑定**:Human Gate 写入或机械校验失败时保留授权直至成功落盘后再消费;修复 Antigravity `hasHookChannel` 下跨进程经验授权绑定自动重载兜底。
|
|
34
|
+
- **DSH 对话 Tab「Web 当前不可用」**:`/ldvh/api/health` 在返回前 `await ensureReady()` 触发一次预热(幂等,已有进程时立即返回),首次请求即返回真实 `webPort`。
|
|
35
|
+
- **三端管辖项目列表与颜色同源**:Web API 补齐 `/api/governed-projects` 与 `/api/governed-projects/with-colors` 两条同源路由,前端 `Settings.tsx` 统一走 `/governed-projects/with-colors` 并兼容两种响应包裹,在 DSH Host、local-daemon 与独立 Web API 三端均能读取同一份 `~/.ldvh/ldvh/governed-projects.yaml` 与项目颜色偏好。
|
|
36
|
+
|
|
37
|
+
### 移除
|
|
38
|
+
|
|
39
|
+
- **移除 Claude Code 支持**:从支持宿主清单、文档、插件配置与项目目标中移除 Claude Code,聚焦 Antigravity、Codex 与 DSH 三宿主。
|
|
40
|
+
|
|
41
|
+
### 打包与规范
|
|
42
|
+
|
|
43
|
+
- **补 DSH bundle 与安装指引资源**:新增 `locale/zh.json`、`locale/en.json`(`meta.title` / `meta.description` / `meta.detail`)与 `docs/DETAIL.md`,在 `package.json` 导出 `./locale/*.json` 与 `./icon` 并列入 `files`;修正 `adapters/dsh/installer.js` 本地安装命令指向仓库根或 npm 包 `ld-vibe-harness` 以启用 Host + Client 双平面。
|
|
44
|
+
- **共享设置默认值补齐两个 Tab 键**:`DEFAULT_PLUGIN_SETTINGS` 增 `showInConversationTab`、`showInSidebarTab`,与 `Config` 默认值对齐,避免首次读取时缺键。
|
|
45
|
+
- **规范同步**:`specs/10-DSH 环境接入与插件发布规范.md` 新增 §5.5.1 Client 平面与 §5.9 DSH 签名宿主接缝。
|
|
46
|
+
|
|
47
|
+
### 升级提示
|
|
48
|
+
|
|
49
|
+
- **Antigravity**:执行 `node cli/ldvh.mjs host setup --host antigravity --apply` 同步到 `~/.gemini/config/plugins/ldvh` 后,在插件管理页刷新 MCP 服务。
|
|
50
|
+
- **Codex**:执行 `node cli/ldvh.mjs host setup --host codex --plugin --apply` 更新本地插件与 `~/.codex/agents`,开启新会话后审核并信任 Hooks。
|
|
51
|
+
- **DSH**:从 npm 更新 `ld-vibe-harness@0.4.0` 或本地执行 `dsh plugin --profile <profile> add <repoRoot>` 启用 Host + Client 双平面。
|
|
52
|
+
|
|
53
|
+
## [0.3.0] - 2026-12-02
|
|
54
|
+
|
|
55
|
+
收敛五类事实模型与 26 个模型可见 MCP 工具,升级两选项中文 Human Gate 与全产品统一提请题面格式,改版联网调查为主控二选一与亲自调研闭环,并完善单页四渠道诊断、内嵌看板热重载/自愈与设置页独立卡片体验。
|
|
56
|
+
|
|
57
|
+
### 新增
|
|
58
|
+
|
|
59
|
+
- **单页四渠道诊断面板**:诊断页取消旧分页标签,扩展采集并聚合 `MCP`、`Hook`、`CLI`、`Git Gate` 四渠道事件账,区分「实际异常/拦截」与「待确认/半程流转」。
|
|
60
|
+
- **内嵌看板热重载与并发自愈**:新增 `POST /admin/reload-web` 热重载端点(`host setup --apply` 自动触发,不再误杀守护进程),支持 `/admin/shutdown` 后并发代理自动拉起自愈。
|
|
61
|
+
- **实战踩坑经验沉淀**:在 `ldvh-base/pitfalls/` 沉淀 4 条排障经验(Git Hook 迁移路径比对、Windows 尾反斜杠解析、内嵌 daemon 被 shutdown 失联、`webApiProcess.dispose` 不可逆 503)。
|
|
62
|
+
|
|
63
|
+
### 变更
|
|
64
|
+
|
|
65
|
+
- **五类事实模型与 26 工具收敛**:统一收敛为 `Goal`、`Intent`、`Norm`、`Report`、`Pitfall` 五类结构化事实与 26 个模型可见 MCP 工具(另含 app-only `ldvh_app_api_proxy`);随包运行期规范收口为 16 份 `plugin-specs/*.yaml`。
|
|
66
|
+
- **Human Gate 与全产品提请题面统一**:升级高风险写入门禁为 Hook 验签两选项中文审批(`确认执行` / `拒绝取消`)并自动补全对象标题;统一全产品 Human Gate、行动前/收口前把关与联网调查提请题面为 `LDVH <类别> - 是否<动作>:<对象>?`。
|
|
67
|
+
- **联网调查闭环改版**:遇复杂外部难题时由主控先检索内部事实源,仍缺再以二选一请示「联网调查 / 不调查」(人主动要求时不重复请示),获准后由主控亲自执行完整调研工序(`ldvh-researcher` 作为可选局部辅助)。
|
|
68
|
+
- **设置页卡片拆分与窄宽修复**:将「自主召回预算」与「经验积累」拆分为独立控制卡片,修复受管辖项目卡片在窄宽度下的挤压折行异常。
|
|
69
|
+
- **文档、帮助手册与截图同步**:全面更新 `README.md`、`README.en.md`、`RELEASING.md`、`docs/ARCHITECTURE.md`、`docs/PRIVACY.md`、多宿主清单描述、看板 5 章节帮助页及 4 张看板截图。
|
|
70
|
+
|
|
71
|
+
### 修复
|
|
72
|
+
|
|
73
|
+
- **Hook 门禁与冷启动状态修复**:修复 `ask_question` 识别 `questions: [...]` 与 `A1: 确认执行` 时触发的死循环,同步修复同类 `PostToolUse` 与冷启动状态判定问题。
|
|
74
|
+
- **本地看板 `fetch failed` 与 503 根治**:修复陈旧指纹淘汰、`webApiProcess.dispose` 不可逆与守护进程同步关停导致的看板失联。
|
|
75
|
+
- **Git Hook 迁移路径误判**:修复插件安装目录迁移或升级且旧目录仍留在磁盘时 `hook-manager` 误判 `managed` 跳过升级的问题。
|
|
76
|
+
|
|
77
|
+
### 移除
|
|
78
|
+
|
|
79
|
+
- **移除 `Friction` 业务系统与 `Milestone` 层级**:全产品彻底清除摩擦账本与里程碑层级,待推进事项收敛至 `Intent`,反复卡点有效临时规避沉淀为 `Pitfall`。
|
|
80
|
+
|
|
81
|
+
### 升级提示
|
|
82
|
+
|
|
83
|
+
- **旧仓目录兼容与插件刷新**:旧仓库内残留的 `ldvh-base/milestones/` 与 `ldvh-base/frictions/` 目录会自动忽略不报错(建议清理或将未完事项迁入 `Intent`);同步插件(`host setup --host antigravity --apply`)后请在宿主管理页刷新 MCP 服务。
|
|
84
|
+
|
|
85
|
+
## [0.2.0] - 2026-11-30
|
|
86
|
+
|
|
87
|
+
面向外部开箱可用性的关键修复与核心能力升级:运行时规范打包解耦、Hook 注入与远程 MCP App 修复、双源召回优先级与零向量同义词/路径增量补强、7 类事实对象渐进式精读以及经验/摩擦独立子代理全权落盘。
|
|
88
|
+
|
|
89
|
+
### 新增
|
|
90
|
+
|
|
91
|
+
- **随包精简运行时规范载体**:将运行期规范收口为 19 份 `plugin-specs/*.yaml` 与构建期生成的 `lib/*.bundle.json`(`specs/` 仅留存仓库作开发设计参考,不再打入 npm 包)。
|
|
92
|
+
- **确定性零向量同义词补漏**:新增 `lib/recall-synonyms.js`(21 组封闭工程与 LDVH 领域词组,兼容中文 bigram 粒度、排除泛词),接入事实源与载体召回,在原生弱命中/未命中时低权补漏并标注 `原词→扩展词`。
|
|
93
|
+
- **工具后路径上下文增量提醒**:`PostToolUse` 在受管辖仓库通过独立 `turn-paths/<hash>.json` 记录刚触及的源码相对路径(Windows realpath 归一化、排除 `ldvh-base/`),同回合后续 `PreInvocation` 按路径定向提醒 `active Norm` 与 `active Pitfall`(回合级去重、纯读取回合排除、`Stop` 自动清理)。
|
|
94
|
+
- **全系 7 类事实对象渐进式精读**:新增 `lib/progressive-read.js` 并重构 `lib/read-body-render.js`,统一接入 `ldvh_{goal,milestone,intent,norm,pitfall,friction,report}_read`,支持磁盘 1-based `headings` 目录、`include_body: false` 仅读大纲与 `sections` 按 H2 节选(显式披露 `missing_sections`、`outcome: "partial"` 与 CAS 写前全量回读警示)。
|
|
95
|
+
- **运行时载体条款级行号定位**:`lib/runtime-carrier-reader.js` 使用 `yaml` `LineCounter` 剥离尾空行精确提取 `requirements` 起止行号,`lib/recall-injection.js` 在预算允许时附带缩进式条款行号子行并透出实际送达的 `renderedFactUids`。
|
|
96
|
+
- **经验与摩擦独立子代理落盘**:新增 `agents/ldvh-friction-recorder.md` 与 `lib/capture-notice.js`;确立主控只发现可回指材料并后台派发子代理(经验由 `ldvh-experience-recorder` 授权直写,摩擦由 `ldvh-friction-recorder` 写观察缓冲并在同源满 3 次时由工具以子代理会话签名自动晋升),同时升级 `Stop` Hook 收口防死循环护栏。
|
|
97
|
+
- **双源召回高优锚点与基准评测**:新增 `lib/goal-anchor.js` 常驻目标与活跃里程碑锚点及 `scripts/eval-recall.mjs` 7 场景召回基准评测脚本。
|
|
98
|
+
|
|
99
|
+
### 变更
|
|
100
|
+
|
|
101
|
+
- **双源召回优先级重构**:确立高优先权重(目标/里程碑/事实规范居首、踩坑经验次之,`FACT_TYPE_PRIORITY`),支持标识符子词拆解(`expandIdentifierSubtokens`)、显式路径上下文提权、运行时载体泛词停用治理及跨进程 `hook-turn-state.json` 同回合去重。
|
|
102
|
+
- **34 个模型可见 MCP 工具**:下线旧规范全文读取工具 `ldvh_read_specification_candidates` 与 `ldvh_read_specification_content`(运行时改走轻量载体定位 + 按行号按需读取)。
|
|
103
|
+
- **术语与把关点位统一**:清理 `plugin-specs/*.yaml` 中残留中文旧术语(`火花` → `意图`、`子目标` → `里程碑`);`ldvh_review_ask` 对齐 `pre-action`(`candidate_summary`)、`post-work`(`conclusion_summary`)摘要校验与 `point="research"` 统一请示点位;Git Gate 强拦范围扩展覆盖 `plugin-specs/`。
|
|
104
|
+
|
|
105
|
+
### 修复
|
|
106
|
+
|
|
107
|
+
- **独立发布依赖与 Windows CRLF 兼容**:补齐 `web/api-js` 运行时依赖(`compression`、`cors`、`dotenv`、`express`、`js-yaml`)至根 `package.json`;修复 `lib/spec-registry.js` 在 Windows CRLF 换行下的解析失败。
|
|
108
|
+
- **Antigravity Hook 注入静默丢失与陈旧 daemon 淘汰**:移除 `PreInvocation` / `SessionStart` 中触发宿主静默丢弃的 `metadata.user_markdown`;在 `server/local-daemon.js` 与 `hooks/_client.mjs` 增加 `codeFingerprint` 与 `POST /admin/shutdown` 自动优雅淘汰陈旧常驻服务。
|
|
109
|
+
- **远程 MCP App 2 MiB 超限 500 故障**:`ObjectDetail.tsx` 改用 `PrismLight`(18 种语言)、仅开发环境启用 `react-dev-locator`、`server/mcp-app-html.js` 增设 1.4 MiB 自动 gzip + `DecompressionStream` 自解压兜底,将单文件序列化体积压至约 1.14 MiB(守卫阈值 `< 1.5 MiB`)。
|
|
110
|
+
- **事实源直写拦截与多宿主 Human Gate 闭环**:`hooks/hook-engine.js` 拦截受管辖项目 `write_file` / `edit_file` 直写 `ldvh-base/`(使用 `realpathSync.native` 兼容 Windows 8.3 短路径);非 Hook 宿主(Codex / Claude Code)支持 `human_confirmed: true` 闭环(Antigravity 下仍强制 `force_ask` 不可绕过);拦截子代理直调 `ldvh_friction_write`。
|
|
111
|
+
- **DSH 适配器补全与泛目录线索过滤**:`adapters/dsh/index.js` 补全 `/ldvh/api/plugin-settings` GET/POST 接口与 `systemPrompt` 注册;修复 `git status --porcelain` 对未跟踪目录产出纯目录线索导致路径召回误命中的缺陷。
|
|
112
|
+
|
|
113
|
+
### 移除
|
|
114
|
+
|
|
115
|
+
- 模型可见工具 `ldvh_read_specification_candidates`、`ldvh_read_specification_content`。
|
|
116
|
+
- npm 发布包中的 `specs/` 目录(仍保留于仓库用于开发参考)。
|
|
117
|
+
|
|
118
|
+
## [0.1.0] - 2026-11-30
|
|
119
|
+
|
|
120
|
+
多宿主「单核多壳」架构重构后的首个正式发布版本(旧版代码归档在分支 `backup/main-legacy`)。
|
|
121
|
+
|
|
122
|
+
### 新增
|
|
123
|
+
|
|
124
|
+
- **多宿主行业清单**:`plugin.json`(Antigravity)、`.codex-plugin/plugin.json` 与 `.mcp.json`(Codex / Claude Code)、`.claude-plugin/plugin.json`(Claude Code)、根包 `cordis.patch.yml` 与 `adapters/dsh`(DSH Cordis 插件)。
|
|
125
|
+
- **统一数据目录与 `ldvh host` CLI**:三宿主默认共享 `~/.ldvh`(可用 `LDVH_DATA_DIR` 覆盖,刻意忽略 `PLUGIN_DATA` 以防 Hook 与 MCP 分库);新增 `ldvh host <list|inspect|setup>` 检查与安装命令。
|
|
126
|
+
- **36 个模型可见 MCP 工具 + 隧道代理**:含只读签名自查工具 `ldvh_session_signature` 及 app-only 代理 `ldvh_app_api_proxy`。
|
|
127
|
+
- **可观测事件账**:`~/.ldvh/ldvh/gate-events.jsonl`(环形保留最近 500 条),记录 `SessionStart`、`PreInvocation`、Hook 拦截与 MCP 工具调用,诊断页直接读取。
|
|
128
|
+
- **把关与积累协同**:`ldvh_review_ask` 新增 `record_decision` 显式留痕;召回命中附用户可见回显;经验积累与摩擦发现开关状态随会话注入。
|
|
129
|
+
- **全新 Web 看板体验**:监听 `0.0.0.0:3299` 支持本机与局域网访问;提供预编译后端产物(`web/api-js`、`web/shared-js`)、聚焦页项目/分支两级条、跨平台原生目录选择框、全新 5 章节帮助手册(`/help`)以及单文件自包含 MCP App(支持远程 `antigravity.google.com` 直接访问)。
|
|
130
|
+
- **通用中文 Skills 与子代理**:`ldvh-onboarding`、`ldvh-controlled-commit`、`ldvh-governance-flow` 及 4 个独立子代理(`ldvh-pre-action-reviewer`、`ldvh-post-work-reviewer`、`ldvh-researcher`、`ldvh-experience-recorder`)。
|
|
131
|
+
- **发布基建**:`package.json` `files` 白名单与 `prepack`、`scripts/check-pii.mjs` 隐私扫描门禁、`docs/PRIVACY.md`、`RELEASING.md` 与 GitHub Actions 双平台 CI(`.github/workflows/ci.yml`)。
|
|
132
|
+
|
|
133
|
+
### 变更
|
|
134
|
+
|
|
135
|
+
- **核心术语彻底统一**(不保留旧名别名):
|
|
136
|
+
- `Spark(火花)` → `Intent(意图)`:类型键 `intent`,载体 `ldvh-base/intents/intent-<uid>.md`,工具 `ldvh_intent_{read,list,precheck_create,write}`,规范 `specs/22-Intent-意图.md`,原 `intent` 字段改名为 `purpose`。
|
|
137
|
+
- `SubGoal(子目标)` → `Milestone(里程碑)`:类型键 `milestone`,载体 `ldvh-base/milestones/milestone-<uid>.md`,工具 `ldvh_milestone_{read,list,precheck_create,write}`,规范 `specs/21-Milestone-里程碑.md`。
|
|
138
|
+
- 业务系统「火花记录」→「意图记录」(`specs/31-意图记录系统规范.md`);`goal.md` 里的历史 `## 子目标` 段仍按旧规则只读识别。
|
|
139
|
+
- **温和统一署名引导**:AI 发起 `git commit` 时统一先查 `ldvh_session_signature` 并附带 `LDVH-Provider` / `LDVH-Model` 签名;Git Gate 仅对触及 `ldvh-base/` 或 `specs/` 的提交强拦,不阻碍人类手工提交与 `git merge`。
|
|
140
|
+
|
|
141
|
+
### 修复
|
|
142
|
+
|
|
143
|
+
- **懒加载 MCP 工具 Hook 适配**:扩展 `hooks.json` matcher 与 `hooks/hook-engine.js`(`unwrapLdvhToolCall`),兼容 `call_mcp_tool` / `mcp_tool` 包装解包与 `_ldvh_context` 注入。
|
|
144
|
+
- **文件版本守卫误拦**:连续 `write_file` / `edit_file` 成功后刷新版本基线。
|
|
145
|
+
- **摩擦晋升与 Git Gate**:修复 `ldvh_friction_record_observation` 在 Antigravity 下的会话上下文解析;Git Gate 去除 `--binary` diff 防止大二进制文件 `ENOBUFS`;修复 Codex JSON Schema `title` 关键字冲突并取消 `ask-text` 200 字符截断;修复 MCP App 内嵌 iframe 跨站误拦。
|
|
146
|
+
|
|
147
|
+
### 移除
|
|
148
|
+
|
|
149
|
+
- 工具 `ldvh_probe_host_automation`、`ldvh_inspect_loaded_modules`、`ldvh_collect_subagent_results`。
|
|
150
|
+
- 倒计时自动放行设置 `reviewAskTimeoutEnabled`、`reviewAskTimeoutSeconds`。
|
|
151
|
+
- Web 诊断页对旧宿主压缩日志与 `zstd` 的依赖。
|
|
152
|
+
|
|
153
|
+
### 升级提示
|
|
154
|
+
|
|
155
|
+
- 旧版 `ldvh-base/sparks/` 与 `ldvh-base/subgoals/` 下的存量对象不会被自动识别,需迁至 `intents/` 与 `milestones/` 并更新 `fact_type_key` 及 `purpose` 字段。
|
package/README.en.md
CHANGED
|
@@ -1,104 +1,114 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="assets/ldvh-plugin-icon-128.png" width="88" alt="LDVH Icon" />
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
<h1 align="center">LDVH · LD Vibe Harness</h1>
|
|
6
|
-
|
|
7
|
-
<p align="center"><b>Persist goals, norms, intents, and pitfalls as Git-tracked structured facts, and constrain AI coding with lightweight index recall, Human Gates, and a Git Gate.</b></p>
|
|
8
|
-
|
|
9
|
-
<p align="center">
|
|
10
|
-
<a href="README.md">简体中文</a> ·
|
|
11
|
-
<a href="#supported-hosts">Supported Hosts</a> ·
|
|
12
|
-
<a href="#quick-start">Quick Start</a> ·
|
|
13
|
-
<a href="#web-dashboard">Web Dashboard</a> ·
|
|
14
|
-
<a href="CHANGELOG.md">Changelog</a> ·
|
|
15
|
-
<a href="RELEASING.md">Releasing</a> ·
|
|
16
|
-
<a href="https://github.com/dingminhua/ld-vibe-harness/issues">Issues</a>
|
|
17
|
-
</p>
|
|
18
|
-
|
|
19
|
-
<p align="center">
|
|
20
|
-
<a href="https://www.npmjs.com/package/ld-vibe-harness"><img src="https://img.shields.io/npm/v/ld-vibe-harness?style=flat-square&label=npm&color=cb3837" alt="npm version"></a>
|
|
21
|
-
<a href="https://www.npmjs.com/package/ld-vibe-harness"><img src="https://img.shields.io/npm/d18m/ld-vibe-harness?style=flat-square&label=downloads&color=cb3837" alt="npm downloads"></a>
|
|
22
|
-
<a href="https://github.com/dingminhua/ld-vibe-harness/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/dingminhua/ld-vibe-harness/ci.yml?branch=main&style=flat-square&label=tests" alt="test status"></a>
|
|
23
|
-
<a href="LICENSE"><img src="https://img.shields.io/github/license/dingminhua/ld-vibe-harness?style=flat-square" alt="MIT license"></a>
|
|
24
|
-
<a href="https://github.com/dingminhua/ld-vibe-harness/stargazers"><img src="https://img.shields.io/github/stars/dingminhua/ld-vibe-harness?style=flat-square" alt="GitHub stars"></a>
|
|
25
|
-
</p>
|
|
26
|
-
|
|
27
|
-
**LD Vibe Harness** (**LDVH**) is an exploration by LaoDing grounded in long-term AI-assisted software development. It provides clear boundaries, reliable grounds, and reusable experience, rules, and capabilities for Humans and AI working together on long-running projects—keeping work continuous and helping projects grow steadily more stable, controllable, and efficient through real accumulation.
|
|
28
|
-
|
|
29
|
-
Two chronic problems with AI coding:
|
|
30
|
-
|
|
31
|
-
- **Vibe drift** — over a long session, or a new one, the AI forgets the project's goals, agreed rules and open ideas, and starts coding on a hunch.
|
|
32
|
-
- **Coding out of control** — the AI writes and declares "done" itself; yesterday's pitfalls get stepped on again;
|
|
33
|
-
|
|
34
|
-
LDVH puts a harness on the AI. Goals, ideas, norms,
|
|
35
|
-
|
|
36
|
-
## Supported hosts
|
|
37
|
-
|
|
38
|
-
| Host | Integration | MCP tools | Hook injection | Human Gate | Sub-agent review | Embedded dashboard |
|
|
39
|
-
| :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
40
|
-
| Antigravity | `plugin.json` + `mcp_config.json` + `hooks.json` | ✅ | ✅ (direct & `call_mcp_tool`) | Hook `
|
|
41
|
-
| Codex |
|
|
42
|
-
| DSH | `adapters/dsh` (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
node cli/ldvh.mjs host
|
|
66
|
-
node cli/ldvh.mjs host setup --host
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
npm
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="assets/ldvh-plugin-icon-128.png" width="88" alt="LDVH Icon" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">LDVH · LD Vibe Harness</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center"><b>Persist goals, norms, intents, and pitfalls as Git-tracked structured facts, and constrain AI coding with lightweight index recall, Human Gates, and a Git Gate.</b></p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="README.md">简体中文</a> ·
|
|
11
|
+
<a href="#supported-hosts">Supported Hosts</a> ·
|
|
12
|
+
<a href="#quick-start">Quick Start</a> ·
|
|
13
|
+
<a href="#web-dashboard">Web Dashboard</a> ·
|
|
14
|
+
<a href="CHANGELOG.md">Changelog</a> ·
|
|
15
|
+
<a href="RELEASING.md">Releasing</a> ·
|
|
16
|
+
<a href="https://github.com/dingminhua/ld-vibe-harness/issues">Issues</a>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
<p align="center">
|
|
20
|
+
<a href="https://www.npmjs.com/package/ld-vibe-harness"><img src="https://img.shields.io/npm/v/ld-vibe-harness?style=flat-square&label=npm&color=cb3837" alt="npm version"></a>
|
|
21
|
+
<a href="https://www.npmjs.com/package/ld-vibe-harness"><img src="https://img.shields.io/npm/d18m/ld-vibe-harness?style=flat-square&label=downloads&color=cb3837" alt="npm downloads"></a>
|
|
22
|
+
<a href="https://github.com/dingminhua/ld-vibe-harness/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/dingminhua/ld-vibe-harness/ci.yml?branch=main&style=flat-square&label=tests" alt="test status"></a>
|
|
23
|
+
<a href="LICENSE"><img src="https://img.shields.io/github/license/dingminhua/ld-vibe-harness?style=flat-square" alt="MIT license"></a>
|
|
24
|
+
<a href="https://github.com/dingminhua/ld-vibe-harness/stargazers"><img src="https://img.shields.io/github/stars/dingminhua/ld-vibe-harness?style=flat-square" alt="GitHub stars"></a>
|
|
25
|
+
</p>
|
|
26
|
+
|
|
27
|
+
**LD Vibe Harness** (**LDVH**) is an exploration by LaoDing grounded in long-term AI-assisted software development. It provides clear boundaries, reliable grounds, and reusable experience, rules, and capabilities for Humans and AI working together on long-running projects—keeping work continuous and helping projects grow steadily more stable, controllable, and efficient through real accumulation.
|
|
28
|
+
|
|
29
|
+
Two chronic problems with AI coding:
|
|
30
|
+
|
|
31
|
+
- **Vibe drift** — over a long session, or a new one, the AI forgets the project's goals, agreed rules and open ideas, and starts coding on a hunch.
|
|
32
|
+
- **Coding out of control** — the AI writes and declares "done" itself; yesterday's pitfalls and tooling snags get stepped on again; key conventions get changed in passing.
|
|
33
|
+
|
|
34
|
+
LDVH puts a harness on the AI. Goals, ideas, norms, and lessons become **structured facts**, recalled automatically before each action. High-risk writes need a human's explicit approval, and a Git Gate checks commits mechanically.
|
|
35
|
+
|
|
36
|
+
## Supported hosts
|
|
37
|
+
|
|
38
|
+
| Host | Integration | MCP tools | Hook injection | Human Gate | Sub-agent review | Embedded dashboard |
|
|
39
|
+
| :--- | :--- | :---: | :---: | :---: | :---: | :---: |
|
|
40
|
+
| Antigravity | `plugin.json` + `mcp_config.json` + `hooks.json` | ✅ | ✅ (direct & `call_mcp_tool`) | Hook-verified 2-option Human Gate (`ask_question`) | ✅ | ✅ (local + remote self-contained MCP App) |
|
|
41
|
+
| Codex | Local plugin + `~/.codex/agents` | ✅ | ✅ (after hook trust review) | MCP approval + `human_confirmed` / Web / CLI | ✅ (independent Codex agents) | browser |
|
|
42
|
+
| DSH | `adapters/dsh` + `lib/client.js` (Host and Client planes) | ✅ | — | Embedded UI | ✅ | ✅ (in-host settings page plus conversation and sidebar tabs) |
|
|
43
|
+
|
|
44
|
+
"—" means the host has no equivalent interface yet; that capability falls back to the model following the guidance in `skills/`. The fact store, tools and Git Gate are unaffected.
|
|
45
|
+
|
|
46
|
+
All hosts share one data directory, **`~/.ldvh`** by default, so a goal recorded in Antigravity is recalled in Codex or DSH too. Set `LDVH_DATA_DIR` to isolate.
|
|
47
|
+
|
|
48
|
+
## Six business systems
|
|
49
|
+
|
|
50
|
+
Goal planning (Goal) · Intent capture (Intent) · Dual-source recall (lightweight candidate index within budget, always-on Goal anchor, in-turn path-context reminders, progressive section read) · Gate consultation (unified prompt titles: 3-option pre-action/post-work review, 2-option web research consult after internal lookup) · Research absorption (controller-led verification & immutable 3-form Report: `research` with `urls`, `summary` forbidding `urls` with internal anchors, `reference` for unverified notes skipping internal anchor checks; optional `ldvh-researcher` helper) · Experience accumulation (verified pitfalls & recurring workarounds recorded asynchronously as `Pitfall`).
|
|
51
|
+
|
|
52
|
+
Four lines of defence: self-check → mechanical verification (controlled writes, read-back, Git Gate) → optional agent review → optional agent re-check (Human Gate grants survive failed validation retries until persisted).
|
|
53
|
+
|
|
54
|
+
## Quick start
|
|
55
|
+
|
|
56
|
+
Requires Node.js ≥ 22.15 (npm tarball already ships prebuilt `web/dist`, `web/api-js`, `web/shared-js`, and `lib/*.bundle.json`; running from a git clone builds the dashboard first).
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
git clone https://github.com/dingminhua/ld-vibe-harness.git
|
|
60
|
+
cd ld-vibe-harness
|
|
61
|
+
npm install
|
|
62
|
+
(cd web && pnpm install && pnpm run build:dsh) # build the dashboard (web/dist is not committed)
|
|
63
|
+
|
|
64
|
+
node cli/ldvh.mjs host list
|
|
65
|
+
node cli/ldvh.mjs host setup --host antigravity --apply # -> ~/.gemini/config/plugins/ldvh
|
|
66
|
+
node cli/ldvh.mjs host setup --host codex --plugin --apply # installs LDVH Local and the Codex agent profiles
|
|
67
|
+
dsh plugin --profile <profile> add ./adapters/dsh # DSH
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Without `--apply`, `host setup` is a dry run.
|
|
71
|
+
|
|
72
|
+
In the Codex desktop app, open Settings → Hooks to review and trust the LDVH hooks. In the CLI, use `/hooks`.
|
|
73
|
+
|
|
74
|
+
### Cross-host review & diagnostics
|
|
75
|
+
|
|
76
|
+
- `ldvh_review_receipt` captures, hands off, and verifies review receipts bound to staged Git content identity; passing `bind_staged_content=true` and `claims` to `ldvh_review_ask(point="post-work")` attaches the content identity to the dispatch prompt, and `ldvh_precheck_git_commit` can verify a receipt against the current Index.
|
|
77
|
+
- `ldvh_trace_intent` traces an implemented Intent UID back to the current Goal, explicit Norm / Report citations, broken references, and local Git evidence.
|
|
78
|
+
- `ldvh_report_session` supports `export` and `restore` of versioned research checkpoints across sessions or hosts; `ldvh_pitfall_arm_delegate` accepts optional structured `evidence` (failure output, reproduction locator/steps, verification method/result) and hands it verbatim to the armed recorder.
|
|
79
|
+
- `node cli/ldvh.mjs recall evaluate` runs the built-in recall baseline (`--cases FILE --project PATH` to test a custom repo, inspect `input` via `--json`).
|
|
80
|
+
- `node cli/ldvh.mjs host doctor --host codex --project .` inspects setup health read-only (also supports `antigravity` or `dsh`), and the Diagnostics page supports correlation lookups by session, turn, agent, fact, commit snapshot, or reviewed content.
|
|
81
|
+
|
|
82
|
+
## Web dashboard
|
|
83
|
+
|
|
84
|
+
- **Local, LAN & Remote**: The daemon listens on `0.0.0.0:3299` by default (random free port on conflict): `http://127.0.0.1:3299/ldvh/`. The Antigravity MCP App (`ui://ldvh/app.html`) is bundled as a self-contained single HTML file tunneling API calls via `ldvh_app_api_proxy`, so it works cleanly even on remote `antigravity.google.com`, with hot-reload and self-healing on sync/shutdown.
|
|
85
|
+
- **Pages**: Focus (project/branch switcher, Goal, Intent health, recent activity), 5 fact-type views, Directory, Changes, Commits, Diagnostics (single unified ledger view reading `~/.ldvh/ldvh/gate-events.jsonl` across MCP / DSH / Hook / CLI / Git Gate, separating errors from pending gates with correlation trace lookup), Settings (separate Recall Budget `10–50 KB` and Experience Accumulation cards, review gate switches, native OS folder picker, three-row vertical project cards for narrow sidebars), and a 5-chapter Help guide (`/help`).
|
|
86
|
+
- **Prebuilt API**: `pnpm run build:dsh` outputs precompiled `web/api-js` and `web/shared-js` for instant startup.
|
|
87
|
+
|
|
88
|
+
| Focus Overview (Goal / Intent Health / Recent Activity) | Structured Facts Board (5 Fact Types) |
|
|
89
|
+
| :---: | :---: |
|
|
90
|
+
|  |  |
|
|
91
|
+
| **Diagnostics & Multi-Channel Event Ledger** | **5-Chapter Interactive Help Guide** |
|
|
92
|
+
|  |  |
|
|
93
|
+
|
|
94
|
+
## Controlled commits & unified signing
|
|
95
|
+
|
|
96
|
+
- Exposes **28 model-visible MCP tools** (including read-only `ldvh_session_signature`, staged-content receipt `ldvh_review_receipt`, and implemented Intent tracer `ldvh_trace_intent`) plus app-only `ldvh_app_api_proxy`. Runtime recall uses **16 bundled `plugin-specs/*.yaml`** (`specs/` stays in the git repo only and is excluded from the npm tarball).
|
|
97
|
+
- In governed repos, AI-initiated commits query `ldvh_session_signature` and attach `LDVH-Provider` / `LDVH-Model` trailers, while Git Gate only enforces strict checks when `ldvh-base/`, `specs/`, or `plugin-specs/` are staged (leaving manual human commits and `git merge` unhindered).
|
|
98
|
+
- **Terminology**: v2 standardized `Intent` (replacing `Spark`), removed both `Milestone` and `Friction` (legacy folders are ignored harmlessly; ongoing work converges into `Intent` and recurring workarounds are persisted as `Pitfall`), and narrowed Report forms to `research` / `summary` / `reference` (removing `audit` and `action`; archive legacy files under `docs/`); see the Help page's Verify & FAQ chapter for legacy repo migration steps.
|
|
99
|
+
|
|
100
|
+
See [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) (Chinese) and [CHANGELOG.md](CHANGELOG.md).
|
|
101
|
+
|
|
102
|
+
## Development
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
npm run check # runs build:bundles + lint + build:web + check:pii + test
|
|
106
|
+
npm run lint
|
|
107
|
+
npm test
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Privacy, Releasing & License
|
|
111
|
+
|
|
112
|
+
- **Privacy**: Local-first with zero telemetry — see [docs/PRIVACY.md](docs/PRIVACY.md).
|
|
113
|
+
- **Release Flow**: See [RELEASING.md](RELEASING.md) (Chinese).
|
|
114
|
+
- **License**: [MIT](LICENSE) (Copyright (c) 2026 LaoDing). Legacy code lives on `backup/main-legacy`.
|