Repository navigation
[PR] test: PTC run_code form end-to-end — run all four wires through once; the gate must not false-positive (#3617 F) | test: PTC run_code 形态端到端——四张 wire 过一遍,门不许误杀(#3617 F) - #3626
Conversation
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.4274-pr.3626.80c8931This exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr3626.tgz
npm install -g packageInstall instructions are refreshed on each push. |
New hermetic suite tests/e2e-ptc-runcode-shape.test.ts: a request declaring exactly one tool (run_code, the PTC omnibus shape) is driven through all four wire prepare chains against per-wire fake upstreams. Per wire it pins: (1) the model-side compress surface stays alive on the PTC shape (standing prompt + armed nudge — the #3600 regression family, pinned at wire level); (2) plugin mode passes the host tool table through untouched (exactly [run_code] outbound — nothing stripped by the gate, nothing appended by bili); (3) proxy-mode control: mergeOwnedTools keeps non-bili-owned names (#920), so the client's run_code survives next to bili's injected compress tool — PTC-shaped input cannot starve the injection either. No source change: test-only.
13a2d64 to
baf6fc5
Compare
(ai: vllm-qwen/qwen3.8-27b) 查重:不重复。 本 PR 是 #3617 的 F 项(PTC 形状端到端测试)。检索了 open+closed 的 issue/PR:没有别的条目覆盖「PTC 形状请求真走四张 wire 的 prepare 链并断言出站工具表」。最接近的 审核结论(八问)
验证证据(本地定向,非全量)
CI 状态(rebased head baf6fc5)静态门禁全部绿(gate / kernel-guard / pi-subagents-guard / config-surface-guard / docs-sync / unused-exports / lock-sync 等);全量回归 12 条 test 车道(ubuntu/windows × node 22/24 × 3 shard)仍在跑,无失败。全绿后我再回帖最终判定。 判定:内容可合(纯测试新增、零运行时改动、断言经核实有效);等全量 CI 确认后收工。合并操作留给人。 |
(ai: vllm-qwen/qwen3.8-27b) 最终结论:CI 全绿,可合。 过程
结构化八问
判定:可合。 分支 head |
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.554-master.e4d42fd # this exact build
npm install -g billion-context@master # always the newest merged build
|
…anxianglei#3652) The sibling test 'foreign write between DEBOUNCED saves' still races under loaded CI runners even after ranxianglei#3626's poll-for-landed fix (6748b23): it waits only for the envelope to be present on disk, but the ownership stamp is applied asynchronously in .then() AFTER the write resolves (after the file already landed). A foreign write slipping into that gap is adopted as ours by the stamp (ranxianglei#3406 residual gap) and the guard below never trips. Reproduced ~1-in-4 under CPU load. Waiting for __ownWriteStampedForTests closes it deterministically.
(ai: vllm-qwen/qwen3.8-27b)
Part of #3617 item F(e2e 加 PTC 形状)。纯测试 PR,无源码改动。
背景
#3617 复盘:#3600(PTC run_code → 压缩面全关)修好时补的是决策矩阵断言(#3603),但没有任何测试用 PTC 形状的请求真正走一遍四张 wire 的 prepare 链并检查出站报文里的工具表。本 PR 补上这条端到端。
新增
tests/e2e-ptc-runcode-shape.test.ts(8 个测试:4 wire × 2 模式)请求只带一个工具
run_code(PTC omnibus 形状),对每张 wire(anthropic/openai/responses/google)各起一个假上游走真实代理链,断言:[run_code]——门不得剥离宿主声明,bili 也不得往插件拥有的表里加自己的工具run_code和compress同时在——mergeOwnedTools只丢 bili 自己拥有的名字(#920),客户端的 PTC 声明必须活下来;注入若被门误杀则compress消失,客户端工具被剥则run_code消失,两种回归都会红不需要真模型:usage 教给代理 50k/64k=78%,第二轮 29 条消息历史确定性 arm nudge(与
lane-decisions-matrix.test.ts同一配方)。验证
node --import tsx --test tests/e2e-ptc-runcode-shape.test.ts→ 8/8 通过(~27s);npm run typecheck干净;Closes 无——本 PR 是 #3617 六项之一,issue 待六项全部合入后关闭。