Repository navigation
fix: dsh PTC run_code omnibus reads as compress-reachable — 0.1.198 nudge suppression regression (#3600) - #3603
Conversation
PTC presets collapse every tool into a single run_code omnibus (SDK bindings nested inside), so the top-level tools array carries no compress entry. The #3427 reachability gate read that shape as unreachable and suppressed the compress surface on every dsh PTC session in released 0.1.198 — nudge suppressed to the 100% window (89x ARMED-SUPPRESSED), output clamped, session effectively dead, while standard-mode sessions kept compressing. An omnibus declaration now reads as reachable: top-level absence is not evidence of unreachability when the omnibus swallows everything. The #3177 true negative keeps its suppression (a bare single tool that is neither compress nor the omnibus still drops the surface). Truth-table rows added: run_code omnibus keeps the surface on all four wires; single non-omnibus tool still drops it.
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.4252-pr.3603.ca16fa9This exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr3603.tgz
npm install -g packageInstall instructions are refreshed on each push. |
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.537-master.2244a07 # this exact build
npm install -g billion-context@master # always the newest merged build
|
(ai: vllm-qwen/qwen3.8-27b) 查重:不重复。 按失败签名("run_code omnibus" / "ARMED-SUPPRESSED" / "compressSurfaceOn" / PTC+可达性)检索 open+closed issue 与近期 PR,无同症状+同机制的在途或已关条目。相关条目各居其位、机制不同:#3600 是原始缺陷单;#3427 引入可达性判据(回归源头);#3401/#3177 是同一条判据的第一个盲区(lane 名静态标签 / named-tool 精度);#3298 记录了 PTC 折叠工具的已知事实;#3252 建立了 code-mode 形状的 状态:本 PR 已合并(merge commit 独立审核记录(自己重读 diff 与调用链,未照抄 issue 结论):
发版状态提醒(需你拍板):最新 tag 仍是 v0.1.198(= 坏版本),已用 git 确认本修复不在该 tag 内——升到 0.1.198 的用户在下个版本前依然坏(临时规避:切回 standard 模式或回退 0.1.197)。按流程发版需 owner 批准:建议切 v0.1.199 patch release 带上此修复,等你签核。 结构化八问:
判定:PR 合并质量通过(方向、机制、测试、diff 四项全过);小瑕疵走 follow-up 小修 PR(进行中);发版待你拍板(建议 v0.1.199)。 |
(ai: vllm-qwen/qwen3.8-27b) 兑现上一条审核里点出的瑕疵(常量复用未落地):
当前状态小结:
|
…n-code-const refactor: lane-decisions 复用共享的 RUN_CODE_TOOL_NAME(follow-up 小修,#3603)
…_TOOL_NAME for the PTC omnibus check
…le (#3884) #3603's single-literal gate (RUN_CODE_TOOL_NAME = "run_code") went stale when DSH 0.2.x moved Code Mode into the dsh-codemode plugin, whose transport is named `code_run` (the reserved name `run_code` belongs to dsh-tools, so the plugin registers its own). On every DSH 0.2.x code-mode session the reachability conjunct failed and the compress surface stayed off forever: nudge ARMED-SUPPRESSED at 42% usage with pendingT1 10x over threshold, zero INJECT, fully silent (#3884). - collect the known omnibus shapes in CODE_MODE_OMNIBUS_TOOL_NAMES (run_code / code_run), provenance-commented per shape; both detection sites match the set - lane-decisions reachability (the reported miss) and ptcNoteMode (proxy-lane exempt note, same-mechanism second site) - matrix: dsh code_run row -> surface on + EMERGENCY twin; existing precision rows (get_weather / acp_status) stay the negative direction - ptc-runcode-tools: code_run -> exempt note on all four wires; bash-only rows pin the negative direction (#3617 bidirectional discipline) Targeted green: typecheck clean; lane-decisions-matrix 66/66; ptc-runcode-tools 16/16; e2e-ptc-runcode-shape 8/8. Full suite = CI.
…le (#3884) #3603's single-literal gate (RUN_CODE_TOOL_NAME = "run_code") went stale when DSH 0.2.x moved Code Mode into the dsh-codemode plugin, whose transport is named `code_run` (the reserved name `run_code` belongs to dsh-tools, so the plugin registers its own). On every DSH 0.2.x code-mode session the reachability conjunct failed and the compress surface stayed off forever: nudge ARMED-SUPPRESSED at 42% usage with pendingT1 10x over threshold, zero INJECT, fully silent (#3884). - collect the known omnibus shapes in CODE_MODE_OMNIBUS_TOOL_NAMES (run_code / code_run), provenance-commented per shape; both detection sites match the set - lane-decisions reachability (the reported miss) and ptcNoteMode (proxy-lane exempt note, same-mechanism second site) - matrix: dsh code_run row -> surface on + EMERGENCY twin; existing precision rows (get_weather / acp_status) stay the negative direction - ptc-runcode-tools: code_run -> exempt note on all four wires; bash-only rows pin the negative direction (#3617 bidirectional discipline) Targeted green: typecheck clean; lane-decisions-matrix 66/66; ptc-runcode-tools 16/16; e2e-ptc-runcode-shape 8/8. Full suite = CI.
…le (ranxianglei#3884) ranxianglei#3603's single-literal gate (RUN_CODE_TOOL_NAME = "run_code") went stale when DSH 0.2.x moved Code Mode into the dsh-codemode plugin, whose transport is named `code_run` (the reserved name `run_code` belongs to dsh-tools, so the plugin registers its own). On every DSH 0.2.x code-mode session the reachability conjunct failed and the compress surface stayed off forever: nudge ARMED-SUPPRESSED at 42% usage with pendingT1 10x over threshold, zero INJECT, fully silent (ranxianglei#3884). - collect the known omnibus shapes in CODE_MODE_OMNIBUS_TOOL_NAMES (run_code / code_run), provenance-commented per shape; both detection sites match the set - lane-decisions reachability (the reported miss) and ptcNoteMode (proxy-lane exempt note, same-mechanism second site) - matrix: dsh code_run row -> surface on + EMERGENCY twin; existing precision rows (get_weather / acp_status) stay the negative direction - ptc-runcode-tools: code_run -> exempt note on all four wires; bash-only rows pin the negative direction (ranxianglei#3617 bidirectional discipline) Targeted green: typecheck clean; lane-decisions-matrix 66/66; ptc-runcode-tools 16/16; e2e-ptc-runcode-shape 8/8. Full suite = CI.
ai: zhipuai-lb/glm-5.3
Fixes #3600
什么坏了(一句话)
0.1.198 起,dsh 桌面版开 PTC(run_code)模式的会话压缩面被整体关闭:nudge 全部压制(issue 实测 89 次 ARMED-SUPPRESSED),窗口一路涨到 100%,output 被 clamp(128k→82k),会话实质报废——而且完全静默。同机同天的 standard 模式会话一切正常。
根因(#3427 引入,首次发布就在 v0.1.198)
observeDeclaredTools()只扫请求体顶层 tools 数组(name / function.name / functionDeclarations 三种形状);toolsHostScopedByDefault = true(src/host-profiles.ts:71)⇒ dsh 插件车道下可达性完全取决于顶层是否出现compress;run_code拢子工具(SDK 绑定嵌在它内部),顶层只有一项run_code⇒has("compress")=false⇒ 压缩面恒关;修法(最小、方向乐观、精度保留)
顶层出现
run_code拢子即视为可达:理由:omnibus 把所有工具吞进绑定,顶层缺席不构成「不可达」的正证据。两条既有语义原样保留:
测试
tests/lane-decisions-matrix.test.ts新增 2 行 × 4 wire = 8 断言:dsh run_code omnibus keeps the surface (#3600 PTC shape)→ nudge+standingPrompt 开;dsh single non-omnibus tool still drops the surface (precision retained)→ 仍关。lane-decisions-b-class绿;tsc --noEmit干净。备注(不阻塞本 PR)