clavue-v1 1.69.4 → 1.69.7

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
@@ -6,6 +6,38 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.69.7 - 2026-11-07
10
+
11
+ 按任务难度调整执行强度,稳定辅助查询的缓存前缀,并为 light / plan / review 槽补齐有界只读合同。
12
+
13
+ - **执行强度与修复交付:** 读主导的探索预算随任务类别调整,真实检查失败才升级;明确要求修复却仅返回可执行步骤、没有磁盘改动时,完成守卫拒绝假成功。方案请求和只读解释不受影响。
14
+ - **缓存与槽位测量:** side query 将动态 attribution 放到稳定 system 前缀之后,记录稳定 system/tools 哈希;新增槽位 wall time、主线程实际等待及重叠下界,并提供同任务配对的离线比较工具。没有真实 token 数据时不填造零值。
15
+ - **worker 合同:** light / plan / review 使用固定职责、独立上下文、产物和轮数约束;side-query 工具限制为 Read / Grep / Glob。主槽、未标记内部调用与用户模型绑定保持不变。hop 身份和合同恢复目前只有一致性校验原语,尚未接通跨重启历史恢复。
16
+ - **验证:** 集成前完整套件 6024 通过、0 失败、3 跳过;fast suite 1341 通过。1.69.7 发布包以 release:preflight 的最终结果为准。
17
+ - English: Adaptive execution intensity, stable side-query cache prefixes, honest hop wait/overlap measurement, and an actionable-repair handoff guard. Light, plan, and review hops now carry bounded read-only worker contracts without changing main-slot tools or user-selected models. Cross-restart hop history resume is not yet implemented.
18
+
19
+ ## 1.69.6 - 2026-11-07
20
+
21
+ 修复纯只读审计的 review 证据丢失,并为 `-p` 退出前的后台 review 增加有界结算等待;补齐合同缺口集成探针,恢复 fast test 的 20 秒预算。
22
+
23
+ - **只读审计证据:** 纯只读轮现在把已完成的 `git show`、`npm view`、`shasum` 等核查及其真实退出码带入 OBSERVED。混合发布/写入命令、后台未结束命令仍不视作已核查;有写入而无回读不会伪装成验证通过。
24
+ - **review 退出等待:** `-p` 退出前有界等待已发出的后台 review,默认上限 25 秒、硬上限 30 秒。生命周期与退出顺序有确定性回归;真实模型长链结算尚未复跑,不宣称已获 live 证据。
25
+ - **合同缺口探针:** 新增离线集成探针,覆盖强制串行 plan hop、非空合同、未落地文件缺口到 `CONTRACT_GAPS` review payload 的接线;不把它描述成真实网络 live 证明。
26
+ - **fast test 预算:** 4 个固定启动/打包成本较高的集成测试转入 full-only manifest,完整 `npm test` 保留;fast suite 约 8 秒,低于 20 秒预算。
27
+ - English: 1.69.6 preserves completed read-only audit evidence, adds bounded settlement for already-fired background reviews before print-mode exit, adds a deterministic contract-gaps integration probe, and restores the 20-second fast-test budget while retaining full-suite coverage. Model-level live review settlement remains unverified.
28
+
29
+ ## 1.69.5 - 2026-11-07
30
+
31
+ post-1.69.4 最优性升级收口:读主导长循环守门、逐调用用量日志与缓存复用率修正、review 漏斗观测与 CONTRACT_GAPS 解耦。最终全量复跑 10/10。
32
+
33
+ - **读主导守门(#323/#324/#325,issue #295):** `turnCompletion/readProgress.ts` 增加 streak 守门,N1=20 轮只读无产出即 steer,失败/被拒的写与未启动的检查不重置;只读任务出口加了“读完就交,不要反复重读”的界。P1 回归探针 steer 后下一轮即产出 Edit 修复;P2 纯文本交付探针复跑 35/35 交付(但 steer 未触发——分批读把 streak 压到 20 以下,#325 的界仍无验证证据)。
34
+ - **逐调用用量日志与缓存复用率(#326):** 新增 `v1PerCallUsageLog.ts`,`CLAVUE_PER_CALL_USAGE_LOG` 指向文件时每完成一次 API 调用记一行 JSONL(input/output/cacheRead/cacheCreation/gap/前缀 hash);复用率口径改为 `cacheRead / (input + cacheRead)`,旧 `cacheHitRatio` 只留作兼容字段。测量结论:77 次主调用复用率 11.6%,TTL 与前缀不稳定假说均被证伪,唯一可缓存的是开头约 13k token 静态单元;复用率几乎完全由网关决定,客户端无更多可做的事。
35
+ - **review 漏斗观测(#327):** 新增 `[review-gate]` debug 日志(仅 `--debug-file` 开启时写)与 bench harness 分流(每任务 debug 文件、完整 stdout、jev 账本按任务分流)。Round 2 测量 10/10:63 条 gate 行,midloop hold 53 条(每条 accumulated=0,量卡在 mutation 窗口从未进 decide),Jev 替代 -p 下零观测,flush 现场行仅 5 条;fire 6 次、结算 4 次——链尾 fire 在 -p 下永远来不及结算(fire 后仅 0.3 秒进程即退出,结算需 11–21 秒)。
36
+ - **CONTRACT_GAPS 解耦(#328,O2):** 串联站点缺口不再看 0.8 风险门(`decideSerialReviewGaps`,risk 取了但不查),高风险批次的全量 review 里也会附上 CONTRACT_GAPS;0.8 本身、Hold、flush 退出时序均未动。验证边界:标准 -p bench 里 plan 槽恒为 0、contract 恒为 null,gap 链 live 仍未观测到,机制只有单元级验证(新测 11/11、回归 166/166)。
37
+ - **最终全量复跑:** main 5e67f079(含 #328)10/10,总 wall 2675.7 秒,0 blocked,一次通过无重跑;token 输入 756,432 / 输出 122,316;缓存复用率 68.6%(网关口径 regime);漏斗 56 行,fire 4 次、结算 2 次(均为中途 fire),flush fire 再次未结算。注:10/10 在 bench 放行配置(--allowedTools 预授)下测得,不等同真实用户逐项审批能力。
38
+ - **发布:** 待用户在 Mac 上直接 npm publish(CI 欠费,workflow 路径不可靠);package-lock.json 已同步(版本 1.69.5)。
39
+ - English: 1.69.5 closes the post-1.69.4 optimality round: a read-dominated streak guard (#323-#325), per-call usage logging and a fixed cache-reuse metric (#326), review-gate observability with a Round 2 measurement (#327), and CONTRACT_GAPS decoupled from the 0.8 risk bar at the serial review sites (#328, O2). Final full re-run on main 5e67f079: 10/10, 2675.7 s, 0 blocked; the O2 gap chain itself remains unit-verified only — the standard -p bench never forms a contract, so it cannot be observed live there.
40
+
9
41
  ## 1.69.4 - 2026-11-06
10
42
 
11
43
  生产安装缺 undici 的打包缺陷修复与发版守门补强。1.69.3 的 -p 静默退出不是代码回归:undici 是 esbuild external,却只在 devDependencies 里,生产安装没有它;代理/CA 环境变量存在时启动 lazy-require 失败,unhandledRejection 被静默吞掉,exit 0、零输出。
package/README.md CHANGED
@@ -90,7 +90,7 @@ clavue-v1 --version
90
90
  Pin a version:
91
91
 
92
92
  ```bash
93
- curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.69.4/install.sh | bash -s -- 1.69.4
93
+ curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.69.7/install.sh | bash -s -- 1.69.7
94
94
  ```
95
95
 
96
96
  Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/update` also prefer the public v1 release, then fall back to npm).
@@ -101,7 +101,7 @@ Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/upda
101
101
  npm install -g clavue-v1
102
102
  # or one-shot:
103
103
  npx -y clavue-v1
104
- npx -y clavue-v1@1.69.4 --version
104
+ npx -y clavue-v1@1.69.7 --version
105
105
  ```
106
106
 
107
107
  One-line global install via the package (npm / unpkg):
@@ -113,7 +113,7 @@ curl -fsSL https://unpkg.com/clavue-v1/install.sh | bash
113
113
  Install a specific version globally:
114
114
 
115
115
  ```bash
116
- curl -fsSL https://unpkg.com/clavue-v1@1.69.4/install.sh | bash -s -- 1.69.4
116
+ curl -fsSL https://unpkg.com/clavue-v1@1.69.7/install.sh | bash -s -- 1.69.7
117
117
  ```
118
118
 
119
119
  ```bash
@@ -722,7 +722,7 @@ Version check:
722
722
 
723
723
  ```bash
724
724
  npx -y clavue-v1 --version
725
- npx -y clavue-v1@1.69.4 --version
725
+ npx -y clavue-v1@1.69.7 --version
726
726
  # available after a global install; both names are this package
727
727
  clavue --version
728
728
  clavue-v1 --version