Repository navigation
[PR] test: Form Matrix Completion — Full Profile, Proxy Mode & EMERGENCY Reverse Guardrail (#3617 D) | test: 形态矩阵补全——全 profile、proxy 模式与 EMERGENCY 反向护栏(#3617 D) - #3625
Conversation
…EMERGENCY guard (#3617-D) Adds 7 rows (x4 wires = 28 tests) to tests/lane-decisions-matrix.test.ts: pi/opencode no-tools (registry host-scoped default false exercised through the real prepare chain), omp single regular tool (non-host-scoped ignores tool table — contrast twin of the dsh precision rows), the proxy-mode structural-on control (no x-bili-plugin header), and the #3461 EMERGENCY override pair: taught usage 45k/64k = 70% sits between the host escalation line (0.7) and the kernel over-limit line (0.75), so the kernel declines on cadence (verified by direct kernel probe: shouldInject=false, 'growth 0 < floor 22500') while 6K executable mass clears minPressureBenefit — the nudge can only arm via the host override. Rows pin: it injects where the surface is reachable (omp + dsh run_code) and must NOT punch through an unreachable dsh tool table. No source change: test-only.
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.4266-pr.3625.d2de1faThis exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr3625.tgz
npm install -g packageInstall instructions are refreshed on each push. |
(ai: vllm-qwen/qwen3.8-27b) 查重: 不重复 —— 本 PR 是 #3617 六项中 D 项(形态矩阵补全)的唯一实现;同系在途的 #3620(A 反向断言纪律)、#3627(B 假上游严格化)、#3626(F PTC e2e)各管各的范围,无重叠。 审核结论:可合(等最后一个 CI shard 跑完即可)。独立核验如下: ① 方向关:与 #3617 D 项要求逐字对齐——profile×wire×工具形状组合列全 + #3461 EMERGENCY 反向护栏。这是复盘后的覆盖补全(characterization/regression pin),不是修 bug,方向正确。 ② 回归审查:diff 只碰 ③ 代码审查(机制独立验证过,不是照抄 PR 描述):
④ 测试有效性:真测试。outcome() 检查的是转发到上游的 wire 字节(nudge 尾部 user 消息形状 + standing prompt 里 ⑤ diff 整洁度:单文件、单提交、每一行都与目的相关;-9 行是头注释块重写 + 类型/签名扩展,无无关改动、无空白噪音。 验证证据:本地定向跑 八问
判定:可合(待最后一个 CI shard 转绿;我已盯,结果出来补一条)。 |
(ai: vllm-qwen/qwen3.8-27b) 上一条说的最后一个 CI shard( 收工判定维持:可合。 |
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.553-master.50d9215 # this exact build
npm install -g billion-context@master # always the newest merged build
|
(ai: vllm-qwen/qwen3.8-27b)
Part of #3617 item D(形态矩阵补全)。纯测试 PR,无源码改动。
背景
#3617 复盘:#3401(dsh 压缩面误抑制)漏出时,矩阵只有「该抑制时抑制」的正向行;#3600 补了 run_code 行但 profile 仍只覆盖 omp/dsh 两个,proxy 模式的结构性 on 没有对照行,#3461 的 EMERGENCY 覆盖也没有在门层面钉过反向行为。本 PR 把
tests/lane-decisions-matrix.test.ts的组合列全。新增 7 行 × 4 wire = 28 个测试
toolsHostScopedByDefault:false的两个 profile 之前从未走过真实 prepare 链——现在走[get_weather]x-bili-plugin头)EMERGENCY 行的构造依据(为什么它真的测到了 override)
教给代理的 usage 是 45_000/64_000 = 70.3%,卡在宿主升级线 0.7(
EMERGENCY_NUDGE_ESCALATION_PCT)和内核超限线 0.75(maxContextLimitPct)之间,所以:decideNudge按 cadence 拒发——直接跑了一遍内核探针确认:shouldInject: false,reasonmax compressible 6005 < threshold 50000; growth 0 < floor 22500,contextUsage: 0.703125;minPressureBenefit(5000),emergencyNudge放行;modelWantsIt = shouldInject || emergencyNudgeArmed(...))——如果 override 路径回归,这行必红;harness 加了一个
teachTokens参数(默认仍是 50_000,既有行不受影响),用于把 usage 教到任意水位。验证
node --import tsx --test tests/lane-decisions-matrix.test.ts→ 58/58 通过(原 30 + 新 28);npm run typecheck干净;Closes 无——本 PR 是 #3617 六项之一,issue 待六项全部合入后关闭。