Skip to content

session identity: tool-prompt neutralization (#2917) + order-primary resolution (#2944) - #2942

Closed
ranxianglei wants to merge 6 commits into
masterfrom
2026-10-12_tool-prompt-neutral-fp
Closed

ranxianglei wants to merge 6 commits into
masterfrom
2026-10-12_tool-prompt-neutral-fp

Conversation

@ranxianglei

@ranxianglei ranxianglei commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Two stages of the same campaign — 会话身份不读表示 (session identity never keys on representation). Tracked by #2944. Closes #2917.

Stage 1 — persona fp ignores tool prompts (#2917)

neutralizeToolPrompts (src/persona-anchor.ts) drops every system line containing a request-declared tool description (≥16 chars, line granularity) before fingerprinting, anchor storage, and #2601 line-diff. bili's own upgrade rewording the compress description (55473→55496 chars) forked |sub:<fp> ledgers with zero folds and a 14MB unfold died in preflight; plugin installs mid-session did the same by ADDING lines. All four persona call sites (anthropic :819, openai :829, responses-dsh :851, instructions lane :888) now pass body.tools.

Stage 2 — order-primary session resolution (#2944, NEW FILE, not switched in)

Owner rule 2026-10-12: 顺序+自铸 id 即可认领同一会话,hash 只是护栏.

src/session-resolve.ts implements it ALONGSIDE persona-anchor.ts — old file NOT deleted, server NOT switched over:

瞄点 + differential pin (owner constraint)

tests/issue2944-session-resolve.test.ts runs the SAME corpus through BOTH implementations: the old fp ladder is characterized FIRST (growth=match, drift+chain=migrate, review fork |sub:fp, fp-equal rescue, 50%-churn invisible to fp), then the new resolver over identical inputs. Behavior-compatible rows share one expectation; designed divergences old→new documented per row. Special proofs: P1 (50% churn ⇒ same session), P2 (blob never claims raw, before or after main claim), P3 (truncated head ⇒ raw+reanchor), P5 (deep stranger ⇒ derived-task).

Rollout per #2944: switch-over in a follow-up small step after this corpus soaks — this PR changes ZERO server behavior (new file + tests only, stage 1 is the wired part).

AGENTS.md

The dsh host renders the plugin manifest's tool descriptions into the
main system message, so the persona fingerprint keyed on strings bili
itself controls. Two ambient events forked the main lane off the raw
key (zero-fold ghost session, folds unreachable, preflight unfold dies):

- a bili upgrade that rewords a tool description (kernel 540f440,
  compress 55473->55496 chars; #2917 restart race: old prompt claimed,
  new prompt forked |sub:<fp>, 14MB unfold 502'd in preflight)
- a user installing a plugin mid-session (new tool lines)

Tool prompts are ambient configuration, not conversation identity
(owner rule 2026-10-12): neutralizeToolPrompts drops every system line
containing a request-declared tool description before fingerprinting,
anchor storage, and the #2601 model-drift line-diff. Line granularity
so the tool-name remnant disappears (a plugin install must MATCH, not
migrate). Wrapped renders fail containment and stay conservative. A
real persona edit (AGENTS.md) and the review persona still fork;
#2601 absorption now survives a simultaneous tool rewrite.

AGENTS.md 2.11 records the principle.
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-10-12_tool-prompt-neutral-fp (ce42938)

Option A — Install this exact build (recommended)

npm install -g billion-context@0.0.3321-pr.2942.3b95d5e

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-pr2942.tgz
npm install -g package

Install instructions are refreshed on each push.

@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

[bot] 🏷

Review 完成(PR Review 规范 ①–⑤ 全过 + 本地定向验证)。结论:方向正确、实现过关、未发现回归;CI 唯一红灯是与本 diff 无关的时序 flake,建议重跑该 job 后合并。本 PR 触及 session 绑定逻辑(§7.4 human 领地),合并留给你。

① 原 issue(方向关)

#2917 取证成立(kernel 540f440 改写 compress 工具描述 55473→55496 字符;重启竞态:旧提示词先 claim raw id,0.35s 后新文本到达 → fp 失配 → 零折叠 |sub: 幽灵)。本 PR 打的是真根因:persona fingerprint 哈希了 bili 自己控制的字符串(dsh 把 manifest 工具描述渲染进主 system)——在指纹之前从身份输入里剥除全部请求声明的工具描述,修在漂移的产生端,而不是下游截症状(不做相似度档位、不做 copy-on-fork),符合「疏不堵」。此前 triage 的 P0 继承/P3 canary 是针对其他 fork 来源的纵深,owner 已明确本 PR 只取「身份层一半」,chainContinues 子问题另案追——范围划分合理。

② 回归审查(既有行为逐项)

既有行为 结论
claim/match/migrate/fork 阶梯语义 保持;仅 fp 输入由 raw system → neutralized system
anchor.system 消费方 全仓仅同文件两处(modelDriftAbsorbed line-diff、foldModel 包含判断),两侧对称 neutralized,无外部消费(git grep 验证)
剥空后的 system 新增 passthrough(不 claim anchor;旧行为是 claim)——与 #2156 side-request 纪律对齐,严格更安全;有意行为变更,已披露
#2601 model-drift 吸收 增强:模型切换与工具改写同窗时现可吸收(工具行两侧剥成相同,line-diff 只剩模型行);无误吸收风险——只删含声明描述的行,persona 行仍会击穿 containment
codex/claude instructions lane instructions 通常无工具行 → no-op;若有宿主渲染进去则同一原则适用
sideRequestLike 门 / claudeSubagentSplit(#970) / codexTurn verbatim / stableSystemAnchor plain-proxy 分支 未触碰
kernel/ · wire 形态 · config surface · version 未触碰(tools 参数纯内部,不改请求字节)

残留(轻微,无需处置):fp 公式输入变化意味着存量 system 含工具行的 |sub:<fp> 账本在本版本升级后会路由到新 fp key——旧子账本冻结(记录留在盘上),其折叠状态一次性不可达,新子账本重新积累。受影响面:真 persona-edit fork(罕见,自愈);#2917 型幽灵被冻结正是预期目标;review persona 不受影响(REVIEW_POLICY 无工具行,blob 走 messages 不走 system)。

③ 代码审查

  • toolDescriptions:三 wire 形态(anthropic/responses 平铺 {name,description} + openai 嵌套 function.description)全覆盖;<16 字符短描述跳过;null/非对象条目安全忽略。
  • neutralizeToolPrompts:整行粒度——工具名 remnant 行一并消失,中途装插件因此是 match 而非 migrate;换行/多行渲染的描述单行包含匹配失败 → 保守留在哈希里(安全方向:宁可 fork 不可 mis-match);整段剥空 → passthrough。性能 O(lines×descs)/请求,相对 55K 字符 system 与 MB 级 payload 可忽略。
  • resolvePersonaKey/personaNamespace 可选尾参 tools,向后兼容(tools 缺省 → 行为与现状字节一致)。
  • src/server/handle.ts:4 个 personaNamespace 调用点(anthropic/openai/responses-dsh/instructions-fingerprint)各透传对应 wire 的 .tools;grep 验证全仓仅此 4 处调用点,无遗漏。
  • 无 as any/@ts-ignore;注释带 KDD 出处,符合仓库风格。

④ 测试有效性

新 7 项断言有牙(deepEqual 精确 action + key):#2917 重放钉住事故形状(claim V1 → match V2);插件安装双向互通(新构建/旧构建互认,覆盖滚动升级窗口);persona-edit 仍 fork(fresh 历史断链)与 review 仍 fork 防过度剥除;#2601 组合漂移吸收;纯工具 system passthrough;三 wire 提取单测。本地在 PR head 跑了 8 个 persona 相关测试文件 51/51 绿(含新 7 项 + dsh-persona-fingerprint / continuity / 2601×2 / side-lane-invariants / crosswire / title-side-lane)。缺口(非阻塞):「换行渲染保守留在哈希」的行为没有专门 case 钉住,目前只有注释承载。

⑤ diff 整洁度

单 commit,4 文件 +209/-6,每行都和本 PR 目的相关。AGENTS.md KDD #11 为 owner rule 文本(2026-10-12);与未合并 #2939 的 #11 编号一次性冲突,按合并顺序解决,PR 正文已注明。

CI

head 204466370,基于最新 master 1149bd8dc(merge-base 即 master HEAD,无需 rebase):32 个 check-run 中 31 绿——static gates 全绿、全部 e2e lane(e2e-dsh-plugin-lane、e2e-codex-persona 等)、test 矩阵 ubuntu-22/24 + windows-22 全绿。唯一红:test (windows-latest, 24) 单例 tests/issue411-abort-usage.test.ts「#411 plugin stream: client abort keeps sniffed usage…」Error: condition not met within timeout(waitFor 3s 轮询超时)。该测试走 mcp-agent plugin register 通道,不经 persona 路径;测试文件自带 #2305 注释记录过同类「loaded windows-latest runner」flake 史。判定为 runner 负载时序 flake,与本 diff 无关 → 建议重跑该 job。

结构化八问

  1. 是什么问题:bili 自升级改写工具描述(dsh 渲染进主 system)使同一会话 id 下 persona 指纹失配,长会话被分叉成零折叠 |sub: 幽灵命名空间,随即 400 空 body / 502 preflight_compress_failed 不可用;用户中途装插件同样触发。
  2. 什么原因导致的:身份输入里混入了 bili 自身控制的字符串(工具描述)——环境配置参与了会话身份,升级改写/安装新增必然漂移 fp;重启竞态只是点火器。
  3. 影响范围与严重程度:所有在改过 ACP 措辞的版本之后恢复的长期 DSH plugin-lane 会话(修复前:长会话完全无法使用直至手工修复或慢速 preflight 追上,且全程无监控信号);装插件场景波及任何中途装插件的 dsh 会话(修复前:fork/migrate 丢压缩状态)。
  4. 怎么修复的:身份层中和——fingerprint、anchor 存储、[Bug] dsh 会话反复 model/provider 切换时主对话迁移到 |sub:<fp> persona fork,宿主盖章的 compress/decompress/acp_status 仍解析在陈旧父 id —— ref 跨空间不可解析直至熔断 #2601 line-diff 三处之前,统一剥除 system 文本中含请求声明工具描述的整行(三种 wire 形态、短描述跳过、换行保守保留、剥空走 passthrough);工具提示词 churn 对会话身份构造性不可见。
  5. 是否有回归问题:无(逐项见表)。两处有意行为变更已披露:①剥空后的 system 由 claim 改为 passthrough(更严,对齐 [bug] dsh:side request 先到会抢走 persona 锚点,主会话被 fork 到 |sub:<fp>,原生 compress 永久失败 #2156);②fp 公式输入变化,存量含工具行的 |sub: 账本升级后一次性冻结(自愈,见残留段)。高危模式逐项过:无语义漂移、无 fail-fast→吞错、无阈值/时序/输出格式变化、日志不变。
  6. 是否破坏缓存:provider 前缀缓存不受影响(转发字节不变);压缩账本可达性恢复(match 保住 fold 可达正是修复目标);重试/增量游标/去重键不受影响。
  7. 是否改了设计方向:不转向。persona-anchor 阶梯不动,只明确身份输入契约(KDD feat: self-update (auto + manual) #11:工具提示词是 ambient config,不是身份)。
  8. 是否引入新的配置:无。

判定:代码与测试就绪;重跑 windows-24 test job 转绿后即可合并(合并留给你——session 绑定逻辑属 human 领地)。

ework-agent and others added 2 commits October 13, 2026 00:36
The four handle.ts call sites pass parsed.tools as an OPTIONAL positional
arg into personaNamespace() — dropping it compiles clean and every unit
test stays green, silently disabling the neutralization for that lane.
This e2e drives real requests through startServer on the dsh/openai lane
with a DISCONTINUOUS history between claim and rewrite, so only the MATCH
rung can keep the raw key (the migrate rung cannot rescue broken wiring).
Negative control: a real persona edit in the same shape still forks.

Fixture note: each request carries a host action tool alongside the ACP
tool — a bili-tools-only declaration is demoted via #1897 (leaked-tools
side passthrough) before persona resolution runs.
…2944)

src/session-resolve.ts implements the #2944 rule ALONGSIDE persona-anchor.ts
(no deletion, no server switch-over): a client-minted unambiguous id plus an
intact order skeleton (content-blind per-position kind sequence) claims the
same session - 50% mid-conversation content churn cannot fork the main lane.
Shallow traffic (no assistant turns) is always derived (|sub:aux, #1916 race
dead); head truncation re-anchors; deep strangers park at |sub:task.

tests/issue2944-session-resolve.test.ts pins BOTH implementations with the
same corpus: the old fp ladder is characterized FIRST (charting pins), the
new resolver runs the same inputs, designed divergences documented per row.
Special proofs: P1 50% churn same order+length -> same session; P2 review
blob never claims raw; P3 truncated head -> raw + re-anchor; P5 deep
main-shaped stranger -> derived-task.

AGENTS.md Key Design Decision #12.
@ranxianglei ranxianglei changed the title persona fp: neutralize tool prompts before fingerprinting (#2917) session identity: tool-prompt neutralization (#2917) + order-primary resolution (#2944) Oct 12, 2026
…corpus

The unused-exports gate failed on orderKindOf / SessionOrderResolution /
sessionOrderSkeletonOf — all three exist for the test + switch-over
diagnostic surface, so make the corpus consume them instead of waiving:
direct orderKindOf assertions (incl. the OpenAI tool_calls/tool_call_id
wire shape) replace the local shim, skeleton bookkeeping is pinned after
continue/reanchor/claim, and a resolution result carries the exported
type. No source change.
@ranxianglei

Copy link
Copy Markdown
Owner Author

设计大改 重新审查 非常谨慎的深入审查

@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

[bot] 🏷 按「设计大改、非常谨慎的深入审查」要求做了独立复审——不复用前轮结论:重新拉分支逐行读了新模块全文 + 差分 corpus 全文 + 新增 e2e wiring 测试全文,本地跑了 typecheck + 全部 12 个 persona 相关套件,CI 逐格核对,并查证了 #2939 的真实状态(查出一个文档事实错误,已顺手修掉)。

验收形态核对(对照 #2944 issue 四条实施约束)

  • ① 先钉现状 ✓ — corpus 对未改动的 persona-anchor.ts 先钉 S1–S6(增长 match / 漂移 migrate / review fork |sub:<fp> / 截头 fp-equal 兜底 / 50% churn 不可见),全部通过。
  • ② 新文件并排、不删旧文件、不切 server ✓ — git diff --stat 验证:persona-anchor.ts、handle.ts 自 stage-1 head 起零改动;src/ 下 grep 无任何 session-resolve import。本 PR 服务器行为零变化。
  • ③ 特殊代码证明 — P1(50% churn 同序同长 ⇒ 同一会话)/P2(浅 blob 认领前后都永不 claim raw ⇒ |sub:aux,并发同 session-id 流互相覆盖 lastInputTokens 基线:#388 侧请求分类漏掉「整段上下文单消息」形态,#1595 re-anchor 放大覆盖 #1916 竞速结构性死亡)/P3(截头 ⇒ raw+reanchor)/P5(深度主形零对齐 ⇒ |sub:task)均在;唯一缺口是「无歧义 id 出身表」(见下 findings 5)。
  • ④ 通用规则一处实现 ✓ — 模块内无任何逐客户端特判,系统提示词一字不读(resolveSessionOrder(rawId, history) 签名上就没有 system 参数)。

独立验证证据

  • 本地(PR head 2479a8a32,worktree + npm ci + kernel/pi-subagents build):tsc --noEmit 干净;12 个 persona 相关套件(issue2917×8 含新 e2e、issue2944×5、dsh-persona-fingerprint/continuity、issue2601×2、side-lane×2、issue2817-crosswire、dsh-title-side-lane/sidecar、affinity-crosswire-fold)68/68 全绿。
  • CI @ 2479a8a32:32/32 全绿——static gates 全套(kernel-guard、unused-exports、config-surface-guard、docs-sync…)、build-artifact、全部 e2e 车道、以及上一轮红的 test (windows-latest, 24) 本轮矩阵四格全过(确认是 runner flake,客户端取消 = 无主 AbortError ×260/天 + 已计费 usage 丢弃(lastInputTokens 冻结)+ 透传路径漏 10min timer(无 finally) #411-abort-usage 的 waitFor 超时未复现)。
  • base = origin/master HEAD(1149bd8dc),无 stale-base;PR mergeable。

测试有效性(质量关)

新增 openai-lane e2e wiring 测试是真测试:hermetic rig(真实 startServer + mock upstream + 全量状态重置)、dsh 插件头、HOST_TOOL 规避 #1897 demotion(纯 bili-tools 声明会被降级到 side passthrough,注释与实现一致)、discontinuous history 强制只有 MATCH rung 能保住 raw key(若 handle.ts 丢了 tools 透传则 fp 必不同、无其他 rung 可救 → 必然 fork → 断言失败)、负控(persona edit 同形仍 fork)防平凡通过;断言打在真实 session store 状态(requests 计数 + 中立化前后双 ghost 检查)。有牙。corpus 差分结构也成立:OLD 行先钉死、兼容行共享期望、分歧行逐条标 old→new 及原则依据。

结构化八问

  1. 是什么问题:不是修 bug,是架构落地——会话身份层不得以内容表示(system 文本 fp / 内容链哈希)为判据;认领主判改为「顺序骨架 + 自铸 id」,hash/形状降级为防漂移护栏(KDD refactor: reapOrphanBlocks should live in acp-kernel, not the proxy #12)。被治的同族故障:[Evidence] pi 车道切供应商(同 modelId)后 fold 不随会话迁移:裸上下文 2.23MB(≥298K est tokens)被 preflight 10 秒拒 3 次;账面 ≤157K 与裸水位背离 10.5h #2847/公告:release v0.1.193 修复dsh 切模型导致上下文暴涨问题,修复fork问题,修复claude codex dsh等自动压缩导致会话破坏问题 . 另外修复几十个bug. 我本地场景有限,未必都测全,麻烦大家小场景先测试下是否有问题.任何问题及时反馈. #2821/[Bug] 升级/重启后 system 文本漂移把同一会话分叉成零折叠命名空间(|sub:<fp>):长会话随即 400 空 body / 502 preflight_compress_failed #2917「表示 churn → 幽灵 fork |sub:<fp> 零 fold 账本 → 巨包 preflight 502」。
  2. 什么原因导致的:身份层键控了表示,而表示的一部分由 bili 自己控制(升级改写工具描述、装插件新增工具行)→ 任何环境事件都触发 fork。旧阶梯逐案打连续性补丁(并发同 session-id 流互相覆盖 lastInputTokens 基线:#388 侧请求分类漏掉「整段上下文单消息」形态,#1595 re-anchor 放大覆盖 #1916→[[bug] dsh 0.1.185: main lane forks itself on a mid-session model switch, orphaning the persona anchor — every native compress is refused (9/9, not covered by #2157) #2241→codex 线 responses 身份仍走 instructions-hash subagentNamespace:同 id 下 instructions 中途变更会 fork 主 lane 丢压缩(#2241 同款暴露,未审计) #2250→[Bug] dsh 会话反复 model/provider 切换时主对话迁移到 |sub:<fp> persona fork,宿主盖章的 compress/decompress/acp_status 仍解析在陈旧父 id —— ref 跨空间不可解析直至熔断 #2601→[Bug] 升级/重启后 system 文本漂移把同一会话分叉成零折叠命名空间(|sub:<fp>):长会话随即 400 空 body / 502 preflight_compress_failed #2917 中立化)越叠越厚;stage 1 仍是旧阶梯上的膏药,stage 2 从根上让身份层不再看内容。
  3. 影响范围与严重程度:本 PR server 行为零变化(stage 2 纯并排,已验证无接线)。stage 1 有意行为变更(已披露):「仅工具描述行不同」的 system 从 migrate/fork 变 match;纯工具行的 system 走新增 un-anchored passthrough(保守方向)。被修问题本身属特定条件下(dsh 重启竞态/中途装插件/bili 自升级改措辞)压缩状态完全丢失 + 14MB 巨包 502,严重故障级。
  4. 怎么修复的:stage 1(wired)neutralizeToolPrompts 在 fp/anchor 存储/[Bug] dsh 会话反复 model/provider 切换时主对话迁移到 |sub:<fp> persona fork,宿主盖章的 compress/decompress/acp_status 仍解析在陈旧父 id —— ref 跨空间不可解析直至熔断 #2601 行 diff 之前按整行剥除含请求声明工具描述的 system 行(≥16 字符、三种 wire 形态提取、行粒度连工具名残骸一起消失),handle.ts 四个 personaNamespace 调用点透传 body.tools;stage 2(alongside)认领证据 = 逐位置消息 KIND 序列(role+工具形状,内容全盲):主形 claim raw / 增长前缀对齐 continue / 浅 blob 永不 claim → |sub:aux / 截头 raw+reanchor / 深度陌生零对齐 → |sub:task。
  5. 是否有回归问题:无。旧阶梯未触碰(特征化套件原样钉死并通过);高危模式逐项过:无语义漂移(旧路径行为字节不变)、无 fail-fast 变吞错、无阈值/时序/输出格式漂移、无缓存静默失效。kernel/、pi-subagents/、version、config surface 均未触碰(各 guard 绿)。
  6. 是否破坏缓存:不涉及——prefix-affinity 链/快照语义未动;skeleton map 与旧 anchors map 同为进程内存(均不持久化);fold-reconcile 层未动。
  7. 是否改了设计方向:是——本 PR 就是那次转向本身(owner rule 2026-10-12)。切换(旧文件退役)按计划留在差分浸泡后另行小步执行,不在本 PR。
  8. 是否引入新配置:无(config-surface-guard 绿;无 env/config/CLI 新增)。

深入审查发现(切换前 checklist,均不阻塞本 PR)

  1. Turn-1 孤儿(精确化):mainShaped 要求 ≥3 cell 且含 assistant 轮 → 真新会话的第 1–2 个请求([user]、[user,assistant])结构上非主形 → 派生 |sub:aux,raw key 要到第一个带 assistant 轮且 ≥3 cell 的请求(通常第 3 个 API 请求;前轮 review 说「第二个请求」,精确说还差一拍)才认领。代价:每个新会话留 ≤2 条 inert aux 记录(与 review blob 共用同一 |sub:aux key,GC 前留存),压缩状态零损失(turn 1/2 无可 fold)。这是纯形状判据下不可避免的取舍(turn-1 与 blob 形状不可区分),方向安全(宁可不认认错)。建议切换前把这条连带后果显式钉成 corpus 分歧行。
  2. Tail rail 在 recorded 短时退化:tailAligns 窗口 = min(8, len, recorded.len);若早期认领(recorded 仅 3–4 cell)而历史已长,窗口退化为整个旧骨架,纯 u/a 交替对话任意连续 4 cell 都匹配 → 尾对齐近乎恒真。叠加 shorter 分支(「id trusted」完全不需要对齐)——合同外(host 违规复用 id)的深度陌生会话两个方向都可能并进 raw。合同内安全(rule ① id 信任哲学,spec 明确允许「头部对齐或尾部对齐」),记录在案不改;前轮只记了 longer 情形,此处补 shorter + 短 recorded 退化。
  3. Aux 判别是形状-only,KDD 表述需读者注意:KDD refactor: reapOrphanBlocks should live in acp-kernel, not the proxy #12 写 hash 防「subagents 复用主会话带来的漂移»,但实现注释明确「本层唯一的护栏是消息形状」——多轮辅助 persona(≥3 cell 且含 assistant 轮)在已认领 id 下会走 continue/reanchor/task 分支,前缀对齐即 CONTINUE raw。此类流量的实际保护来自上游 id-splitting 机制(Subagent first token stalls 1-2min: withSessionLock covers full forward + slow flash upstream first byte #970 等,在 handle.ts,完好保留),不来自本层。解读自洽(rule ③「不参与认领决策」),但切换 PR 应写明,免得有人以为这层能兜住多轮 subagent。
  4. Google 车道缺口(与前轮一致):orderKindOf 读 content/tool_calls/tool_call_id,不读 google parts → google cell 退化为裸 role;google 车道目前不在 persona 范围,切换时若纳入需补齐。
  5. 出身表缺失(与前轮一致,验收 ③ 的唯一缺口):docstring 只有散文版 caller 契约,没有逐车道列出哪些 id 合格(responses codexTurn verbatim / anthropic claude id / openai dsh conv id / google 待定)。天然属于切换 PR,挂账。
  6. history 边界未定义(新增):resolveSessionOrder(rawId, history) 未明确 history 是否含 system message(含则多一个 system cell,影响 mainShaped 计数)。旧阶梯 (id, systemText, messages) 分开传,自然移植应排除 system;建议切换 PR 定死。

顺手修复(2 个独立标注 commit,已推 PR 分支,head ce42938a3)

判定

可合——CI 32/32 绿 @ 2479a8a32;我的两个 docs commit 无行为变更(其 CI 重跑进行中,纯文档不影响结论)。需人工合并:命中 §7.4 must-stay-human(identity/session-binding 逻辑 + feat/architecture,非 auto-merge 面)。切换(旧文件退役)维持计划外另行执行,上述 6 项 checklist 随切换 PR 带走。

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