Skip to content

[PR] fix(verif): drop dev-machine absolute paths in wire harnesses + gate solver-dependent anthropic round-trip tests - #4084

Merged
ranxianglei merged 2 commits into
masterfrom
2026-10-21_verif-abs-path-fix
Oct 21, 2026
Merged

ranxianglei merged 2 commits into
masterfrom
2026-10-21_verif-abs-path-fix

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

(ai: zhipuai-lb/glm-5.3)

Fixes #4083

修了什么

两个 verif wire harness 把开发机绝对路径写死进了仓库:

  • tests/verif-wire-anthropic-roundtrip.test.ts:28 — const KP = "/home/dog/tmp/bili-verif2/kernel/src/wire/anthropic.ts"
  • tests/verif-wire-google-rebuild-stability.test.ts:44 — file: "/home/dog/tmp/bili-verif2/kernel/src/wire/google.ts"

CI runner 上没有 /home/dog/,translateFunction 在 loadModule 的 readFileSync 处直接 ENOENT,一条断言没跑就红 —— 这就是 master(以及叠在 master 上的所有 PR,如 #4061)ubuntu22 两分片红的根因(d22508b / ebf4de1 带入)。

顺带第二处:anthropic 往返 harness 的两条 SMT 依赖测试没有求解器跳过门(路径修好后它们会在无求解器的 CI 分片上以 no solver available 失败,而不是按 KDD #14 设计跳过 —— google 兄弟文件在 :25 有 haveSolver 门)。

改动(2 文件,每处最小 diff)

  1. 两处路径改 new URL("../kernel/src/wire/<x>.ts", import.meta.url).pathname —— 与 tests/verif-bug3691-oscillation.test.ts:65 同款,cwd 无关;
  2. anthropic 文件加 haveSolver 探测(与 google 文件同实现),两条 SMT 测试加 { skip: !haveSolver };不需要求解器的 real-code replay baseline 保持处处运行。

验证

  • 本机(无可用 cvc5/z3,恰好复现 CI 环境):anthropic 1 pass / 0 fail / 2 skip,google 1 pass / 0 fail / 2 skip(修复前 anthropic 是 ENOENT 红的祖先版本 / 本机路径存在但 solver 缺);
  • tests/verif-subset-guard.test.ts 2/2 绿;
  • npx tsc --noEmit 干净。

影响面

纯测试文件,无产品代码、无 kernel、无配置面。合并后 master ci.yml 分片与 #4061 等叠加 PR 的同款红应一并消除。

…nthropic round-trip tests

The two new verif wire harnesses hardcoded /home/dog/tmp/bili-verif2/...
so every CI run (any machine but the dev box) failed with ENOENT before a
single assertion ran. Resolve the kernel wire sources relative to the test
file (same pattern as verif-bug3691) and gate the two SMT-dependent
anthropic round-trip tests behind haveSolver, exactly like their google
sibling, so solverless environments (CI shards) skip instead of failing.
The solver-free real-code replay baseline keeps running everywhere.
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-10-21_verif-abs-path-fix (321d3ec)

Option A — Install this exact build (recommended)

npm install -g billion-context@0.0.4863-pr.4084.5b127f4

This exact version is immutable and reproducible. The rolling pr tag tracks the newest test build across all PRs.

Option B — Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pr4084.tgz
npm install -g package

Install instructions are refreshed on each push.

@ranxianglei ranxianglei changed the title fix(verif): drop dev-machine absolute paths in wire harnesses + gate solver-dependent anthropic round-trip tests [PR] fix(verif): drop dev-machine absolute paths in wire harnesses + gate solver-dependent anthropic round-trip tests Oct 21, 2026
Third instance of the same miss as the anthropic round-trip harness: the
#3989 view-latch induction judge calls solveSmt2 with no solver-availability
gate, so every solverless CI shard fails with 'no solver available' instead
of skipping per KDD #14. Same probe + skip pattern as the google harness;
the solver-free behavior-matrix test keeps running everywhere.
@github-actions

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.700-master.333a468 (rolling master tag).

npm install -g billion-context@0.0.700-master.333a468  # this exact build
npm install -g billion-context@master  # always the newest merged build

npm view billion-context@master prints the current version at any time.

Zhishulo pushed a commit to Zhishulo/billion-context that referenced this pull request Oct 21, 2026
@github-actions github-actions Bot mentioned this pull request Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant