Skip to content

[PR] msgid: pi+omp full-resend turns onto the biliMsgIds envelope (#6525/#6539) - #6549

Closed
ranxianglei wants to merge 1 commit into
masterfrom
2026-11-13_pi-omp-envelope-msgids
Closed

ranxianglei wants to merge 1 commit into
masterfrom
2026-11-13_pi-omp-envelope-msgids

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

一句话

让 pi + omp 的 full-resend 请求也带上 msgid 信封(biliMsgIds),补齐 #6525「信封通道零客户端接线」里的 pi/omp 一块——msgid 发送不再依赖增量车道(车道无关,讨论 #6539 提案)。

背景

信封载体①(biliMsgIds,full-resend body 平行数组)是 #5759/#4491 身份管线的主通道,但改造前只有增量车道在发(msgIds,delta body),full-resend——尤其是 OpenAI-family 的 wire(#3433 shape-gated away from the lane)——一条宿主号都不带,存储里整段会话是内容摘要。pi/omp 的配对 walker 早就存在(laneMsgIdsForWire/laneMsgIdsForOpenAiWire,车道/水位/fork 都在用),只是从没接到 full-resend 信封上。

怎么做(全部在 src/agent/,服务端零改动)

验证

  • npx tsc --noEmit 干净。
  • 新测试 tests/issue6525-pi-omp-envelope.test.ts 23/23:coreAlign 十例(1:1 成功含 lead+工具轮;text+tc/图文/双 tc/中段 system/lead-only/重复/长度失配/非数组全 bail;anthropic 1:1)、bodyProxyVisible 两例(/bili/ 包裹可见、裸 upstream 不可见)、resolve 五例(google wire 出局/无 branch/branch 截短/getBranch 抛)、stamp 六例(可见+可解→{...payload, biliMsgIds}、blind tunnel 字节不变、omp pck base 并存、已盖戳不双盖、不可解、非对象 payload)。
  • 回归 7 套件(pi-msgids/pi-omp-fork-adopt/msgid-rule-parity/dsh-fork-adopt/plugin-fork/incremental-client + 本文件)133/138;5 个失败全是 plugin-fork.test.ts「HTTP CCR … fails closed after cold disk restore」,stash 掉本改动在 baseline 上同样 5 失败(环境性,与本 PR 无关)。
  • docs:msg-id-infrastructure.md 载体①行(post-hoist core count + 已接线客户端 + gate)、reference/architecture.md pi-msgids.ts 行;architecture-docs guard 全绿。

边界

相关

#6525(缺口盘点+计划) · #6539(提案:msgid 全生命周期) · #6532(dsh 信封) · #6540(服务端四 wire pin + GA) · #6293(fork msgid 轨) · #4491/#5759/#1403/#1579/#3433

@github-actions

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-11-13_pi-omp-envelope-msgids (2ac05e6)

Latest build — install this exact version

npm install -g billion-context@0.0.9588-pr.6549.b9cf7a8

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

Recent builds (commit → version)

commit version build
2ac05e6 billion-context@0.0.9588-pr.6549.b9cf7a8 build

Download artifact

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

Install instructions are refreshed on each push.

@ranxianglei

Copy link
Copy Markdown
Owner Author

已收编进统一 PR #6564(提案 #6539 一个 PR 落地,用户要求不拆分)。本 PR 关闭;合并留 owner。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant