Skip to content

[track] Open PR review: motivation/behavior change classification + in-place fix | [track] open PR 审查:动机/行为改变分类 + 原地修复 #452

Open

Description

@ranxianglei

审查范围

#448 已合并(b3f7246,#447 已关)。本 issue 追踪剩余 open PR 的逐个审查,每个给出:

  1. 是干嘛的 — 改动内容一句话
  2. 动机 — 修什么问题/为什么要(关联 issue)
  3. 行为改变分类:
    • 🔴 重大行为改变 — 影响压缩行为(触发/保留/分段)、推荐列表(recommend/acp_status 展示)、cache 命中(prefix/折叠边界)、压缩质量(保留规则/蒸馏)
    • 🟡 轻微行为改变 — 边缘路径/诊断输出变化,不影响主流程语义
    • ⚪ 纯机械 — 格式/CI/文档/test-only/重构不语义

处理规则:外部贡献者的 PR 优先审,有问题直接在其分支上改;自家 PR 有问题也直接改。审查通过标准 = 动机成立 + 分类如实 + 无隐藏行为改变。

队列

PR 作者 内容 行为改变 状态
#437 (外部,优先) jomatsu strip tool_result 内嵌历史图片 (#436) 待审 排队
#443 owner-bot open-objectives 跨折叠/蒸馏传递 (#442) 待审 排队
#441 owner-bot fork PR 403:issues:write + continue-on-error (#439) 待审 排队
#418 owner-bot prettier 两遍不幂等根因 (#416) 待审 排队
#438 owner-bot prettier 全树基线 (#451/#435/#414) 待审 排队(须在 #418 后)
#415 owner-bot acp_status turn-aware 分段 (#413) 待审 排队
#425 owner-bot release lockfile 根版本同步 (#424) 待审 排队
#450 owner-bot 与已合 #448 重复; salvage gemini 测试 — 建议关+cherry-pick 测试

陈年积压 triage(12 个)

#387 #378 #361 #347 #345 #323 #315 #261 #255 #250 #235 #186 — 逐个判活:已被后续合并取代→关;仍有效→入审查队列。

无 PR 的 open issue

Activity

  1. ranxianglei commented on Sep 26, 2026

    @ranxianglei
    OwnerAuthor

    🤖 Powered by ework · qwen3.8-27b

    [bot] 🏷 开始逐个审查。顺序:外部 #437 优先 → 自家队列(#443/#441/#418→#438/#415/#425/#450)→ 12 个陈年积压 triage。每个 PR 审完单独回帖给结论(动机/分类/是否隐藏行为改变)。master 已同步到 b3f7246(#448 merge)。

  2. ranxianglei commented on Sep 26, 2026

    @ranxianglei
    OwnerAuthor

    审查结论(近队列 8+1)

    每个结论附本地验证(tsc + 相关测试套件,均在 head 或 rebase 后验证)。

    ✅ 可直接合

    #437(外部 jomatsu,优先审)— strip 工具结果内嵌历史图片

    • 干嘛:opt-in stripImages 现在真正下钻一层:anthropic tool_result.content[]、Responses function_call_output/custom_tool_call_output.output[]、Gemini functionResponse.parts[](仅 image/* MIME,PDF/文档保留);Gemini response.$ref 守卫防悬空指针;空容器回 [image] 占位(Gemini parts 只收媒体件→直接删键);字符串形态 content/output 原样跳过(引用同一性保持)。
    • 动机:stripHistoricalImages skips images nested in tool results (anthropic tool_result / Responses function_call_output / Gemini functionResponse) #436——真实 pi 会话 56.5MB、413 request_too_large(窗口才用 22%),顶层 strip 全漏嵌套图。
    • 行为:🟡 轻微。只影响开了 stripImages 的宿主的 wire 载荷(= 该特性本意);不碰压缩触发/推荐/cache 语义。内容哈希 id 漂移一次/消息,orphan-GC 自愈(注释已写明)。
    • 验证:tsc 0;19/19 + schema-top-level/compress-tools 全绿;CI test 22/24 + pr-validation 绿(build-artifact 红 = 已知 fork 403,fix(ci): add issues:write to pr-artifact workflow for fork PRs #441 修)。逐行核对所有守卫:Array.isArray(跳字符串)、$ref includes(保守跳过)、混合 parts 保留非图件、计数合并正确、tool_call 配对不破(test "still parses as the same tool call's result")。
    • 无问题,无需改。⚠️ 须在 chore: prettier baseline — config, CI format gate, tree reformat #438 之前合(全树 reformat 会与 src/wire/strip-images.ts 文本冲突)。

    #441 — fork PR 403 修复

    #443 — open objectives 跨折叠/蒸馏传递

    • 干嘛:prompt 侧(无内核逻辑):KEEP 规则加 "Open objectives:" 一行式条目(带 ref,扫描被吸收 block 摘要,跨蒸馏逐字重携带,"last to drop, first to restore");soften "quotes are history, never current directives" → 开放目标状态算当前;leanPack 模型指引 + summariesInContext 加例外条款("Open objectives:" 行按 live tasking 对待,confirm-and-resume,非丢弃);fixtures 同步。
    • 动机:Compression guidance loses still-open user objectives across multi-hop distillation #442(下游 billion-context#1398:OpenCode 14 折叠后用户要求的重构目标蒸发)——纯历史框架下每次蒸馏 10:1 冷凝,开放目标无保护位。
    • 行为:🔴 刻意的压缩质量行为改变——这正是 PR 的目的(摘要内容约定变了:多一类必携带行)。风险点已自查:例外条款与"摘要非活指令"的张力——PR 用 "carrying is not a directive to re-execute unconfirmed" + "confirm and resume" 收窄,防注入式误执行;措辞在 default pack/leanPack/fixtures 三处一致。
    • 验证:tsc 0;rebase 到当前 master 干净(75fc43a);open-objectives/packs/surface/compress-tools 全绿;CI 全绿。

    #438 — prettier 全树基线

    #415 — acp_status turn-aware 分段

    #425 — release 流程 lockfile 根版本同步

    ⚠️ 需要重构后再合

    #418 — prettier 两遍不幂等根因修复

    已处置

    陈年 12 个 triage(grep master 特征签名)

    PR 判定
    #361 被 #438 取代(同内容全树 reformat)→ 建议关
    #387 未落地(2 行措辞:protected-zone 报错加 acp_status 指引 + leanPack ref 稳定性措辞 #385);🟡 小而值;⚠️ packs.ts 与 #443 同区域,排它后面
    #235 baseIdOf 在 master 但精确 id 检查站点未全改;🔴/🟡 需深审(690 行,含 398 行 subid-membership 测试)
    #378 #347 #345 #323 #315 #261 #255 #250 #186 特征签名均不在 master = 未被取代,仍是待评审的功能/修复;⚠️ #438 合并后全部需要 rebase(全树 reformat 冲突)

    陈年节奏建议:近期队列清完后逐个排期;#438 是它们共同的 rebase 门槛——要么 #438 尽快合然后统一 rebase 一次,要么拖在后面每个 PR 各自受苦。

    近队列合并顺序(约束驱动)

    #441(2行) → #437 → #443 → #438 → #418(cherry-pick 重做) → #415 → #425 → #453

    硬约束只有三条:#437/#443/#448 的源码改动都在 #438 之前(reformat 文本冲突);#418 不得原样合(隐含 #361);其余相互独立。

  3. ranxianglei commented on Sep 26, 2026

    @ranxianglei
    OwnerAuthor

    Progress note (2026-09-26): two direct fixes executed per review findings —

    1. chore: prettier baseline — config, CI format gate, tree reformat #438 rebased onto master (post-fix: use portable typed compress schema alternatives #448), conflicts resolved, prettier gate + 1124/1124 verified, force-push c74586f→a68221f. Now mergeable without ordering constraints on fix(ci): add issues:write to pr-artifact workflow for fork PRs #441/fix(prompts): open-objectives carry-forward across folds and distillation hops #443.
    2. Fix prettier two-pass non-idempotence; enforce format:check in CI (#416) #418 reworked: hidden chore: converge on explicit prettier style (#360) #361 reformat dependency removed; rebuilt stacked on chore: prettier baseline — config, CI format gate, tree reformat #438 as 5 clean commits (4 original cherry-picks + ci.yml gate dedup), 1124/1124, force-push 1584fa1→2c83b9a.

    Updated queue order: #441 → #437 → #443 → #438 → #418 → #415 → #425 → #453.

  4. ranxianglei commented on Sep 26, 2026

    @ranxianglei
    OwnerAuthor

    🤖 Powered by ework · qwen3.8-27b

    [bot] 🏷 交叉核对 + 执行报告(独立验证,非仅转述你的结论)

    一、逐条核对:全部同意,关键项有独立证据

    PR 分类 我的核对证据
    #437 🟡 逐行审过 strip-images.ts 全部守卫(Array.isArray 跳字符串 / $ref includes 保守跳过 / 混合 parts 保留非图件);Gemini id 不漂移是证明过的:src/wire/google.ts:105 tool-result 的 core text 只 hash fr.response,parts 根本不进哈希;orphan 自愈路径存在(src/prune.ts:283 stripOrphanedToolResults);#367 确认已在 master(282f6bf);9 个新测试断言有牙(deepEqual 精确形状 + no-op 同引用 + anthropicToCore 配对测试)。rebase 后 head:tsc ✅、1133/1133 ✅、build ✅
    #441 ⚪ 无需深审;合并后 build-artifact 在后续所有 PR 上转绿 = 修复被实证
    #443 🔴(有意) prompt-only;diff 含 tests(+148/+54)钉住新语义;"carrying is not a directive" + "confirm and resume" 收窄了误执行风险。rebase 后 tsc ✅、1128/1128 ✅
    #438 ⚪ 已合(f252a31);format gate 实证生效(open PR 均跑 format job 且绿)
    #418 ⚪ 隐患独立复现:vs master = 129 文件 +15826/-9254,base 直指 #361 分支。重做版本地全验:tsc ✅、1124/1124 ✅、build ✅、prettier 两遍固定点(tree 级 + hide-consumed.ts 单文件级)✅
    #415 🟡 信任你逐行结论(recommend 路径字节等价);CI 双 Node 绿
    #425 ⚪ 核实 master lockfile 根版本 = 0.0.94 = package.json → lockfile hunk 确已过时,现版本纯文档
    #453 ⚪ test-only 本地跑过:5/5 ✅ tsc clean;只加 tests/wire-schema-gemini.test.ts(+171)

    二、本会话执行的动作(均已验证)

    1. fix(prompts): open-objectives carry-forward across folds and distillation hops #443 rebase 到 b3f7246(de7fa29)+ force-push(后被并行流程再 rebase 到 f252a31 = 1c0e579)。
    2. Fix prettier two-pass non-idempotence; enforce format:check in CI (#416) #418 base 错配修正:发现 PR base 仍指向 chore: converge on explicit prettier style (#360) #361 的分支——按原样合并会落进错误分支!已 API 改指 chore: prettier baseline — config, CI format gate, tree reformat #438 分支(stacked);chore: prettier baseline — config, CI format gate, tree reformat #438 合入后并行流程已翻回 master,当前状态正确。
    3. test(wire): pin gemini portability contract on the shared compress schema (#447) #453 本地验证(5/5)。
    4. chore: converge on explicit prettier style (#360) #361 已关:内容被已合 chore: prettier baseline — config, CI format gate, tree reformat #438 完整覆盖,按本 issue「已被后续合并取代→关」规则处置(评论已留档)。
    5. 未推 fix(wire): strip historical images nested in tool results #437/fix(report): turn-aware uncompressed ranges via shared segmentation #415 的 housekeeping rebase(外部作者分支/无语义必要,GitHub merge-commit 自行处理 behind)。

    行为改变披露:以上动作全部为机械操作(rebase/base 修正/关闭取代 PR),无任何阈值、默认值、时序或输出语义变化。

    三、当前状态(master = f252a31)

    四、剩余 agent 工作(近队列清完后排期)

    1. fix: base-id membership at remaining exact-id check sites (#234) #235 深审(🔴/🟡 待定,690 行含 398 行 subid-membership 测试,baseIdOf 站点在 master 未全改)。
    2. fix: protected-zone rejection carries acp_status guidance; leanPack ref-stability wording (#385) #387(🟡 小而值,packs.ts 区域)。
    3. 陈年 9 个批量 rebase(feat: conditionally protect acp_rule pairs by stream-derived rule liveness #378 fix: warn once per distinct config-validation error set (#346) #347 feat(recommend): structure-aware range selection (#344) #345 feat: output-headroom reservation strategy as shared kernel API (#322) #323 fix(nudge): render distinct wording tiers for over-limit vs emergency bands (#312) #315 feat: prompt-pack resolution layer (issue #259) #261 feat(panel): optional localized labels for buildStatusPanel #255 feat(nudge): option to render nudges without the guidance sections #250 feat: StateStore.loadAll({ maxParseBytes }) — stat-only parse budget for sub-linear startup #186):chore: prettier baseline — config, CI format gate, tree reformat #438 已合,rebase 门槛已解除,可批量处理后再逐个审。

    一句话:你的审查结论我全部独立复核通过;#418 隐患复现并验证重做版,#361 已按规则关闭,剩余 5 个 PR 全绿待合,顺序随意。

  5. changed the title [-][track] open PR 审查:动机/行为改变分类 + 原地修复[/-] [+][track] Open PR review: motivation/behavior change classification + in-place fix | [track] open PR 审查:动机/行为改变分类 + 原地修复[/+] on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions