clavue-v1 1.83.2 → 1.85.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/CHANGELOG.md CHANGED
@@ -4,6 +4,24 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
4
4
 
5
5
  格式约定(`parseChangelog` 依赖):二级标题为 `## <版本> - <日期>`,条目以 `- ` 开头,一行一条,命令与模型名保留英文。
6
6
 
7
+ ## 1.85.0 - 2026-11-24
8
+
9
+ - **过程性经验记忆 + Harness 触发式按需召回 + `pass^k` 一致性评测闭环(实现 #332 / #333):**
10
+ - **M1 一致性评测地基(`bench/lib/passPowK.mjs` + `bench/run.mjs`)**:新增 `--runs <k>`、`--retry-blocked <m>` 与 `--memory-dir <path>`;自动汇总 `Avg@k / pass@k / pass^k` 与任务级 `avgInputTokens / avgOutputTokens / avgCostUsd / avgTurns / avgModelMs`,并将 `401/502/503/429` 导致的 `blocked` 任务独立列示于 `blockedTasks`,不污染 `pass^k` 分母。
11
+ - **M2 `memdir` 过程性经验层与效果归因遥测(`memoryTypes.ts` / `memoryScan.ts` / `memoryRelevance.ts` / `memoryUseTelemetry.ts`)**:`MEMORY_TYPES` 新增 `'procedural'` 并支持结构化 `trigger_signals`(含 `eval_fp:<12位哈希>`、`error_family:`、`command:`、`tool:`、`keyword:`,上限 12 条);常规开局检索默认排除 `procedural` 实现首轮零 Token 膨胀;`memoryUseTelemetry` 扩展 `outcome`(`recovered` / `unresolved` / `aborted`)归因且不重复计入 `usedCount`。
12
+ - **M3 Harness 触发式按需召回与 `selfHealLoop` Pre-Escalation(`v1ProceduralScan.ts` / `v1ProceduralRecall.ts` / `selfHealLoop.ts` / `postToolsTail.ts` / `queryLoopImpl.ts`)**:顺利回合零磁盘 I/O 与零首轮税;仅在 `toolLoopWarn`、`repeat_red`、`stall_replan` 及 `selfHealLoop` 的 `retry_muscle` 阶段(升级昂贵 `escalate_brain` / Arena 之前)以毫秒级本地检索注入 Top-2(≤ 3000 chars、会话去重)Playbook;严格采用尾部 `user` `isMeta: true` 追加,经 `v1CachePrefixGuard` 验证 KV Cache 前缀零破坏;同时将 `queryLoopImpl.ts` 从 4736 行缩减至 4718 行并锁定新基线。
13
+ - **M4 Verifier 认证恢复弧线自动沉淀 & Dream 治理(`v1ProceduralDistill.ts` / `postRunSelfHealAndArena.ts` / `consolidationPrompt.ts` / `extractMemories/prompts.ts`)**:对 `attempt >= 2` / `escalationsUsed >= 1` 后经外部 Verifier 或绿灯检查认证 `accept` 的真实技术失败恢复弧线,按 `eval_fp` 幂等生成 ≤ 40 行 / ≤ 1.5 KB、经 `redactSecretsForPersistence` 脱敏的 `procedural` Playbook;过滤纯 `unverified_code_mutation` 琐碎重试,严格隔离 `abort_and_distill` 仅进 `eval-graph`;Dream Phase 5 新增 `procedural` 效果门控治理。
14
+ - English: Procedural Experience Memory, Harness-Triggered Recall & `pass^k` Consistency Eval (#332 / #333): adds `--runs <k>`, `--retry-blocked <m>`, `--memory-dir <path>`, blocked-task exclusion, and `Avg@k / pass@k / pass^k` + token/cost/turn summaries to `bench/run.mjs` (`bench/lib/passPowK.mjs`); extends `src/memdir/` with `type: procedural`, structured `trigger_signals` (including `eval_fp:<12-char>`), zero opening-turn bloat filtering, trigger ranking, and non-double-counting `outcome` attribution in `memoryUseTelemetry.ts`; adds millisecond-scale bounded local recall (`v1ProceduralScan.ts` + `v1ProceduralRecall.ts`, toggleable via `CLAVUE_PROCEDURAL_RECALL`) wired into `selfHealLoop.ts` Pre-Escalation (`retry_muscle` before `escalate_brain`/Arena), `postToolsTail.ts` (`repeat_red` / `stall_replan`), and `queryLoopImpl.ts` (`toolLoopWarn`, shrinking `queryLoopImpl.ts` from 4736 to 4718 lines) strictly via append-only tail `user` meta messages with zero `v1CachePrefixGuard` breaks; adds `v1ProceduralDistill.ts` wired into `postRunSelfHealAndArena.ts` to idempotently distill externally verified `attempt >= 2` technical recoveries (redacted via `redactSecretsForPersistence`, anti-noise gated, `abort_and_distill` isolated to `eval-graph`) plus outcome-gated `procedural` Dream Phase 5 governance.
15
+
16
+ ## 1.84.0 - 2026-11-23
17
+
18
+ - **通用 Agent OS 底座升级 + 盲协议多 Agent ACP 驱动(`clavue-v1 peers`):**
19
+ - **新增 `clavue-v1 peers <list|probe|run|compare>` 免 heap 重启快速路径与零身份分支 `BlindAcpClient`**:通过声明式注册表(`src/cli/acp/peerRegistry.ts` + `~/.clavue/acp-peers/*.json` / `<cwd>/.clavue/acp-peers/*.json`)无分支驱动 Clavue、Antigravity (`agy acp`)、Grok Build (`grok agent stdio`)、Codex (`@agentclientprotocol/codex-acp`)、Claude (`@agentclientprotocol/claude-agent-acp`) 与自定义 ACP v1 服务端;启动前剥离跨 Agent 凭据前缀防止密钥串泄,`compare` 严格只读并支持多 Peer 并行对比,`run` 支持 `--worktree` 写隔离与 `--effort`/`--model`/`--mode` 映射。
20
+ - **确定性最小权限交集与类型化拒绝账本(`src/runtime/effectiveGrant.ts`)**:实现单调收敛的 `EffectiveGrant`(`worker_ceiling ∩ ee_policy ∩ repo_trust ∩ run_binding`),在模型外对每次 ACP `session/request_permission` 做确定性裁决并追加写入 `refusals.jsonl`;加固 fail-closed 不变式——`--read-only` 与 `repoTrusted: false` 同时封禁写与 Shell、空 `targetPaths` 与匿名工具自动拒绝、存在任何权限约束时禁止透传 `--always-approve` 或回退 `allow_always`。
21
+ - **声明式 Verifier 注册表与 Verifier-Only Marks(`src/runtime/verifierMark.ts`)**:支持 `command`、`artifact_exists`、`payload_json_valid`、`regex_match` 校验器与 `<runDir>/marks.jsonl` 运行时独占签发(`issuedBy: "runtime_verifier"`,按最新 Mark 裁决);锁定 `~/.clavue/verifiers/` 为不可被仓库覆盖的用户信任根,启动前快照校验器并保护 `.clavue/verifiers/**` 只读,文件校验强制工作区路径/符号链接围栏、常规文件检测与 256 KiB 有界读取。
22
+ - **长间隔恢复上下文增量与 Clavue ACP 服务端原生配置升级**:新增 `src/runtime/resumeContextDelta.ts`(空闲 >= 30m 零 LLM 注入 `<resume-context-delta>`);`clavue-v1 agent stdio` 在 `session/new` 原生返回 `modes` 与 `configOptions`(`effort`、`mode`),修复首轮 prompt 前调用 `session/set_mode`/`session/set_config_option("mode")` 未持久化到延迟创建 runtime 的问题;`clavue-v1 interop --json` 将 `antigravity`(`agy acp`)纳入异构协作矩阵。
23
+ - English: Generic Agent OS primitives & zero-identity-branch multi-agent ACP CLI (`clavue-v1 peers <list|probe|run|compare>`): adds declarative ACP peer registry (`peerRegistry.ts` + `.clavue/acp-peers/*.json` with cross-agent credential env sanitization) and `BlindAcpClient` (`acpClient.ts`) driving Clavue, Antigravity (`agy acp`), Grok Build (`grok agent stdio`), Codex, and Claude adapters over standard ACP v1 stdio with parallel read-only `compare` and isolated `--worktree` runs; adds deterministic least-privilege `EffectiveGrant` intersection + `refusals.jsonl` typed refusal ledger (`effectiveGrant.ts`, fail-closed on `--read-only`/`repoTrusted: false` shell, empty `targetPaths`, missing tool identity, and blocking `--always-approve`/`allow_always` bypasses under restricted grants); adds declarative Verifier-Only Marks (`verifierMark.ts` + `marks.jsonl`, immutable user trust root, pre-turn verifier snapshotting, cwd/symlink containment & bounded 256 KiB file reads); adds deterministic 30m+ `<resume-context-delta>` middleware (`resumeContextDelta.ts`); upgrades `clavue-v1 agent stdio` to advertise native `modes` + `configOptions` (`effort`, `mode`) on `session/new` with pre-prompt mode persistence and registers `antigravity` (`agy acp`) in `interop --json`.
24
+
7
25
  ## 1.83.2 - 2026-11-23
8
26
 
9
27
  - **TUI 日记打印与流式渲染热修:**
package/README.md CHANGED
@@ -95,7 +95,7 @@ clavue-v1 --version
95
95
  Pin a version:
96
96
 
97
97
  ```bash
98
- curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.83.2/install.sh | bash -s -- 1.83.2
98
+ curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.85.0/install.sh | bash -s -- 1.85.0
99
99
  ```
100
100
 
101
101
  Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/update` also prefer the public v1 release, then fall back to npm).
@@ -106,7 +106,7 @@ Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/upda
106
106
  npm install -g clavue-v1
107
107
  # or one-shot:
108
108
  npx -y clavue-v1
109
- npx -y clavue-v1@1.83.2 --version
109
+ npx -y clavue-v1@1.85.0 --version
110
110
  ```
111
111
 
112
112
  One-line global install via the package (npm / unpkg):
@@ -118,7 +118,7 @@ curl -fsSL https://unpkg.com/clavue-v1/install.sh | bash
118
118
  Install a specific version globally:
119
119
 
120
120
  ```bash
121
- curl -fsSL https://unpkg.com/clavue-v1@1.83.2/install.sh | bash -s -- 1.83.2
121
+ curl -fsSL https://unpkg.com/clavue-v1@1.85.0/install.sh | bash -s -- 1.85.0
122
122
  ```
123
123
 
124
124
  ```bash