Repository navigation
[PR] fix: auto-mode-forge lane evidence tightened — tool_result/assistant echo no longer triggers local forgery | fix: auto-mode-forge 车道证据收紧 — tool_result/assistant 回声不再触发本地伪造 - #4025
Open
ranxianglei wants to merge 1 commit into
Conversation
Contributor
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.4881-pr.4025.c202663This exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr4025.tgz
npm install -g packageInstall instructions are refreshed on each push. |
… never tool_result/assistant echoes
ranxianglei
force-pushed
the
2026-10-21_forge-trigger-scope
branch
from
October 21, 2026 04:00
990b71f to
da380aa
Compare
Owner
Author
(ai: vllm-qwen/qwen3.8-27b) 查重: 不重复 —— 本单即 #4024 修复 PR 的镜像;按症状(本地伪造 auto-mode 裁决劫持真实会话)与机制(分类器证据扫描面过宽)检索 open+closed 的 issue/PR,无其他同机制条目。 标签: bug / claude-code / scope/wiring / p1(与 #4024 对齐;本单是其修复 PR 镜像)。 本 PR 此前已 rebase 到 本轮验证(全部实跑)
独立审核要点(非转述 issue)
八问
判定:可合并。 head |
This branch has not been deployed
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.
Fixes #4024
#4003 全量评审 compression 域 P2:自引用回声误触发。
改动(2 文件):
src/auto-mode-forge.ts:messageTextOf(m, skipToolResults);新增classifierScanText()= system + user 消息文本(tool_result 块排除)。isAutoModeClassifier的<transcript>wrapper 只认 user 消息文本;flavor/shared markers 只扫 classifier 文本。classifierForgeVariant同源。magic stop_sequences 门槛不变(结构化字段)。requestText(计费/审计日志用)保持全量。tests/auto-mode-forge.test.ts:原「marker 在 tool_result 里也算数」的过宽断言重写为方向正确的负例;新增 4 个回声负例(双 tool_result 凑齐、tool_result marker + user wrapper、assistant 引用、system-only wrapper)+ stage 后缀在 user 文本的正例。真车道形状核对(全部保持检出): 平铺 blob 在 user 文本(既有用例)、stage-1 non-fast magic stops(既有)、system 政策 + user wrapper(既有)、user 后缀带 flavor marker(新增正例)。
门禁: gate 测试纪律(#3617)双向断言 — 4 负 + 4 正。本地:forge 20/20、tests/e2e-anthropic.test.ts + tests/dsh-authored-compaction.test.ts 27/27、tsc 干净。kernel/ 未动、config 面未动(无新 knob)。
合并后 #4003 评审清单 P2 第 4 项关闭。