Repository navigation
refactor: lane-decisions 复用共享的 RUN_CODE_TOOL_NAME(follow-up 小修,#3603) - #3609
Merged
Merged
Conversation
…for the PTC omnibus check
Contributor
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.4256-pr.3609.f0761fcThis exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr3609.tgz
npm install -g packageInstall instructions are refreshed on each push. |
Contributor
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.544-master.74bdffd # this exact build
npm install -g billion-context@master # always the newest merged build
|
This was referenced Oct 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up 小修 to #3603(post-merge supplement).
背景
#3603(已合并)给
compressReachable加了 PTC omnibus 析取项,但写的是裸字面量declaredTools.has("run_code");而src/compress-tool.ts:263早已存在同一事实的命名常量RUN_CODE_TOOL_NAME = "run_code"(供 #3252 的ptcNoteMode()使用),且 #3600 triage 明确承诺「复用同一常量/惯例,两处判据保持一致」。本 PR 兑现该承诺。改动(3 行,零行为变化)
src/compress-tool.ts:RUN_CODE_TOOL_NAME加export(值不变);src/server/lane-decisions.ts: 引入该常量,declaredTools.has("run_code")→declaredTools.has(RUN_CODE_TOOL_NAME)。导入无新增环:
lane-decisions.ts已经经由preflight.js/session-self-heal.js传递依赖到compress-tool.js,直接 import 不改变传递闭包;inject.ts等 server 模块已有先例。验证
node --import tsx --test tests/lane-decisions-matrix.test.ts→ 30/30 pass(含 [bug] 0.1.198 PTC(run_code)会话压缩面被永久压制:顶层 tools 只有 run_code ⇒ declaredTools.has("compress") 恒 false ⇒ nudge 从不注入 #3600 两条新矩阵行 × 4 wire 全管线);全量裁决以远程 CI 为准;tsc --noEmit干净。无配置面变化、无 wire 形状变化、无 kernel 改动。