Repository navigation
[PR] Gate completion: restart lane to add Anthropic line (Claude) + fix double-execution bug on P lane | gate 补全:重启车道加 anthropic 线(claude)+ 修 P 车道双重执行 bug - #6823
Conversation
…ult matrix Coverage follow-up (PR#6793 review, owner asked: 协议是否齐全/场景/客户端): 1) Lane R gains a claude agent (opt-in via agentsR): the first non-openai CLIENT-SIDE wire through the deep restart scenario. Prefix topology — claude-code speaks anthropic over HTTP to a harness-managed bili proxy child (-> recorder -> model); the small window is bili-side (provider context + proxy restart, prefix-lane rule) at 32768 (claude's unfoldable floor sits near the wall — Lane P lesson). Kill matrix: the proxy is killed via SIGTERM/SIGKILL and re-established on the SAME port by the harness (nothing auto-respawns a manually started proxy); each respawn must resume the session, outbound stays compact AND non-empty, exactly one live proxy (no split-brain). Every turn also gets the 600s budget (claude small-window preflight is a multi-stage distillation; the 300s budget SIGTERMs mid-preflight — Lane P lesson). 2) dsh-google joins the default Lane P matrix: the google-generative-ai client door now runs in every gate (the harness lane + wire assertions already existed; it just was never in the default set). Also: restart-lanes setHostWindow is now async (the claude window flip restarts the proxy and must complete before the next turn); the claude proxy handle is hoisted to lane scope so teardown always reaps it; stale duplicate comment removed.
…le-running the P suite
restart-lanes.mjs imports { buildCorpus, CODEWORDS } from plugin-lanes.mjs;
the unguarded top-level main() re-ran the whole P-lane suite inside the
restart-lanes process (GATE_AGENTS there = dsh,pi), in the SAME $WORK lane
dirs: two npm -g installs into one prefix -> ENOTEMPTY, a sibling pi
recorder killed via the shared instance registry (503 connect-refused on
pi t2-t4), and the side-effect suite's process.exit(1) became the R
process's exit code. Every containerized gate run since the in-repo move
was contaminated; the 2026-11-15 concurrent verification run's wall time
(39.5min) included doubled model load in the R phase.
📦 Built Package ArtifactBranch: Latest build — install this exact versionnpm install -g billion-context@0.0.10183-pr.6823.4edb402This exact version is immutable and reproducible. The rolling Recent builds (commit → version)
Download artifact
tar xzf billion-context-pr6823.tgz
npm install -g packageInstall instructions are refreshed on each push. |
…ne (PR #6823) The claude (anthropic-wire) lane landed in this PR but the file-header protocol block still read "dsh headless, pi" / "Per agent (dsh, pi)" and claimed the hostile mid-turn variant runs per agent (it is dsh-only in code). Header now names claude, notes its R0/R1-only harness-re-established matrix, and the GATE_R_CONC comment drops the stale "both agents" phrasing. Comments only — no behavior change.
(ai: vllm-qwen/qwen3.8-27b) 查重: 不重复 —— 本线程只有 PR #6823 一个,本审核直接在该分支上进行,未开并行 PR。 这是 [PR] 任务,我没有重做工作:拉取分支逐行核代码、查 CI 状态、给出审核结论。 我验证了什么(审核过程)
顺手小修(已 push,独立 commit 标签:PR #6823 已打 CI 状态(实时查过):新 head 八问
结论:代码干净、机制成立、方向正确——可合(待新 head CI 全绿)。issue 里计划的「干净重跑并发 gate」(真模型容器,~4-5h)仍待做,是修复的最终验收。 |
修复验证:干净重跑(并发模式,v0.1.215 + 修复分支 da2db8c,52min)import 守卫修复后完整重跑了一次(6 个 P 车道 + dsh/pi 重启车道,并发),三类假红全部消失:
结论:并发 gate 的机制在干净环境下不产生假红,剩余红全部可归类为环境/负载/老病。claude 重启车道(本 PR 另一个特性)正在单独短跑验证中(agentsR=claude,只跑 R 车道),结果稍后补。 |
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.1209-master.f648217 # this exact build
npm install -g billion-context@master # always the newest merged build
|
gate 覆盖补全 + 修一个双重执行 bug
这是什么
agentsR加claude即启用(默认不开,因为 claude 小窗 preflight 慢,单条 ~8-10 分钟)。为什么要修
2026-11-15 的并发验证跑整体红,查下来全是这个双重执行 bug 的连锁反应,不是产品问题;而且它让之前所有容器化运行(含 43 分钟串行基线)都混入了影子 P 车道的耗时和负载。修完重跑,才能得到干净的串行/并发对比。
验证
node --check/bash -n/JSON 解析全过。plugin lane:头,(b) npm/recorder 两类假红消失,(c) claude R 车道和 dsh-google P 车道本身绿。文件