clavue-v1 1.69.3 → 1.69.5

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,28 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.69.5 - 2026-11-07
10
+
11
+ post-1.69.4 最优性升级收口:读主导长循环守门、逐调用用量日志与缓存复用率修正、review 漏斗观测与 CONTRACT_GAPS 解耦。最终全量复跑 10/10。
12
+
13
+ - **读主导守门(#323/#324/#325,issue #295):** `turnCompletion/readProgress.ts` 增加 streak 守门,N1=20 轮只读无产出即 steer,失败/被拒的写与未启动的检查不重置;只读任务出口加了“读完就交,不要反复重读”的界。P1 回归探针 steer 后下一轮即产出 Edit 修复;P2 纯文本交付探针复跑 35/35 交付(但 steer 未触发——分批读把 streak 压到 20 以下,#325 的界仍无验证证据)。
14
+ - **逐调用用量日志与缓存复用率(#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 静态单元;复用率几乎完全由网关决定,客户端无更多可做的事。
15
+ - **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 秒)。
16
+ - **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)。
17
+ - **最终全量复跑:** 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 预授)下测得,不等同真实用户逐项审批能力。
18
+ - **发布:** 待用户在 Mac 上直接 npm publish(CI 欠费,workflow 路径不可靠);package-lock.json 已同步(版本 1.69.5)。
19
+ - 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.
20
+
21
+ ## 1.69.4 - 2026-11-06
22
+
23
+ 生产安装缺 undici 的打包缺陷修复与发版守门补强。1.69.3 的 -p 静默退出不是代码回归:undici 是 esbuild external,却只在 devDependencies 里,生产安装没有它;代理/CA 环境变量存在时启动 lazy-require 失败,unhandledRejection 被静默吞掉,exit 0、零输出。
24
+
25
+ - **undici 运行时依赖(#320):** undici 从 devDependencies 移到 dependencies;生产安装(`--omit=dev`)验证含 undici 8.12.4,代理变量与 CA 变量下冒烟均大声报错、建 run 目录、发 API 请求。
26
+ - **发版守门冒烟(#321):** `scripts/check-npm-pack-deps.mjs` 对真实安装多跑一次 `-p` 冒烟(死目标代理/CA 变量 + 假 key),断言 run 目录出现;`--version` 不加载 bundle,测不到缺模块——此次漏网的正是这一层。
27
+ - **联调验证:** main c44dd6c6(含 #320)生产安装全量 10 任务 9/10,唯一失败 wait-discipline 重跑通过,有效 10/10;G1 干净环境对照重跑新旧构建双双成功,原 fetch failed 现象未复现,定性为当时瞬时网关/网络波动,非产品差异。
28
+ - **发布:** 待用户在 Mac 上直接 npm publish(CI 欠费,workflow 路径不可靠);package-lock.json 已同步(undici 移出 dev,版本 1.69.4)。
29
+ - English: 1.69.4 fixes the #319 packaging defect (#320: undici moved from devDependencies to dependencies — production installs without it silently exited 0 under proxy/CA env vars) and hardens the pack gate (#321: the installed tarball now runs a `-p` smoke test under proxy/CA vars, asserting a run directory appears, since `--version` never loads the bundle); integration bench on main c44dd6c6 with a production install: 9/10, sole wait-discipline failure passed on re-run (effective 10/10).
30
+
9
31
  ## 1.69.3 - 2026-11-05
10
32
 
11
33
  架构门回绿:把 `src/query.ts` 收成薄入口(`maxQueryLines` 4788→7),循环体迁到 `src/query/queryLoopImpl.ts`;拆出 ReviewPolicySettle / SlotMeasureHelpers / ToolLoopGuardHelpers,并锁低 architecture baseline。解锁 #314/#315/#316 之后的发版。
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.3/install.sh | bash -s -- 1.69.3
93
+ curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.69.5/install.sh | bash -s -- 1.69.5
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.3 --version
104
+ npx -y clavue-v1@1.69.5 --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.3/install.sh | bash -s -- 1.69.3
116
+ curl -fsSL https://unpkg.com/clavue-v1@1.69.5/install.sh | bash -s -- 1.69.5
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.3 --version
725
+ npx -y clavue-v1@1.69.5 --version
726
726
  # available after a global install; both names are this package
727
727
  clavue --version
728
728
  clavue-v1 --version