You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[no-dispatch] Pinned installs get surprise reinstalls: advisory force-install ignores autoUpdate:false, and config-file changes only take effect on restart #3754
Activity
ranxianglei commentedon Oct 18, 2026
(ai: vllm-qwen/qwen3.8-27b)
查重: 不重复 —— 多组关键词检索过 open+closed(advisory / autoUpdate / pinned / blocked / hot-reload / install attribution)。相关但不同:#3444(同属「配置文件改动不生效」家族,但涉及的是 compress 域旋钮,且其主缺陷是 fold storm,不同失效域);#2456/#2461(advisory 首检时序竞争,不同机制)。无既有条目覆盖「advisory 绕过版本级策略 + update 域配置不热载」。
标签: bug + scope/other + p2(updater 失效域不属于 kernel/wiring/storage/ui/ci/docs 任何一类;严重度与你 issue 里的 p2 评估一致——能用、可绕行)。
验证结论(三项主张全部核实为代码事实)
src/advisory.ts:337硬编码autoUpdate: true——更关键的是 advisory 走的forceInstallVersion(src/update.ts:2081)从不经过passUpdatePolicyGate(src/update.ts:1368),blocked/pinned/hold与 advisory 通道零交互。这是教义内部矛盾,不是单纯遗漏:passUpdatePolicyGate的注释明确写着即使手动bili update(force=true)也跳过 hold+stagger 但仍解析 pinned/blocked——「those are version-level facts, not pacing」。advisory 比手动更新更强,却把这些版本级事实整个跳过了。POST /__bili/config/reload(src/server/admin.ts:311→672),只重读 routes/namedProviders/compress/compat/imageBilling——autoUpdate/advisoryCheck/update.*全不在内,进程持有旧值直到重启。确认。src/update.ts:1606auto-update、:2127advisory 带 id),但它是每进程易失的;重启后/__bili/status(admin.ts:950)没有「盘上这个版本是谁装的」字段,事后只能翻日志文件。「事后难以区分」成立。层次判断
决策请求(Part A:advisory × policy 交互)
blocked,或高于pinned天花板 → 不装,banner/status 保持可见(写明被策略拦下)overridePolicy: true,带则穿透推荐选项 2。理由:#1481 的价值主张就是「紧急通道要够得到 auto-update 关闭的安装」,不能结构性剥夺这个能力;但默认应让位于显式的版本级事实(pinned/blocked 与它同类),逃生口留给发布 advisory 的 owner 自己。实现位置:
runAdvisoryCheck调forceInstallVersion之前读一次 policy(fail-open:feed 不可达 → 照装,与本模块既有 fail-open 纪律一致);拦截条件 =target ∈ blocked或semver.gt(target, pinned)。回滚型 advisory(target 低于当前版本)不受 pin 影响——pin 约束的是升级天花板,不约束降级。结构化八问(决策请求,Q3/Q5 按选项列)
runAdvisoryCheck内一道 gate(policy fetch + 两个条件判定),不动forceInstallVersion原语语义,不动正常自更新循环。overridePolicy是 fleet advisory 文档的条目字段,不是用户配置;默认 false,无迁移。不新增用户侧 config/env。现在就修的部分(无决策依赖,不等上面拍板)
.last-install.json账本({from, version, source: "auto-update"|"manual"|"advisory:<id>", at}),两条安装成功路径(auto-update 循环 / advisory 强装)在既有跨进程锁内写入,/__bili/status增加 additive 的lastInstall字段——重启后一眼看出当前盘上版本是谁装的、什么时候装的。autoUpdate/advisoryCheck/autoRestartOnUpdate),让 operator 能核对「我改的配置到底生效没有」。两项都是纯增量、零行为变更、不预判上面任何选项。PR 稍后开,引用 #3754(不 close——决策项仍开放,后续拍板后在同一 PR 里补齐 Part A)。
结论:验证完成,三项主张全部成立;Part A 等你拍板(推荐选项 2);B + C-minimal 先行开 PR。
ranxianglei commentedon Oct 18, 2026
(ai: vllm-qwen/qwen3.8-27b)
无决策依赖的部分已修完:PR #3755(B 持久归因 + C-minimal 启动生效值日志)。Part A(advisory vs blocked/pinned 优先级)仍等你在上面三选项里拍板,拍板后在同一 PR 里补(一 issue 一 PR)。
PR #3755:#3755
按八问:
bili update/ advisory 强装);0.1.200 → 0.1.201 upgrade (#3658 identity change) mass-unfolds persisted sessions incl. Anthropic lane; downgrade re-churns #3752 现场事后无法区分「advisory 强装」和「手动安装」。另外配置文件改了不重启不生效,但运行中的进程持有什么值完全不可见。cacheDir/.last-install.json={from, version, source, at},source 为"auto-update"|"manual"|"advisory:<id>"(atomic tmp+rename,best-effort——写失败降级为仅日志,绝不让归因搞挂安装)。/__bili/status与/__bili/overview加增量字段lastInstall,每次调用新鲜读取(别的进程装的也可见),absent/corrupt fail-open(字段直接缺省)。被拒/no-op 的周期不碰账本。[update] effective settings (this process, until restart): autoUpdate=… advisoryCheck=… releaseNotesCheck=… autoRestartOnUpdate=…,operator 可拿它和文件核对。tests/issue3754-install-attribution.test.ts(hermetic ~1s,三条来源各走一次真实端到端安装验证账本;损坏/畸形 fail-open;跨进程新鲜读;被拒周期不覆盖)+ 定向回归 88 pass(update-backoff/tarball/advisory/policy/plugin-update/endpoints-parity),typecheck 干净。全量以 CI 为准。.last-install.json是机器生成的状态文件(operator 无需管理,删了下次安装自动重建)。收工判定:本 PR 可合(等 CI 绿);issue 本身先不收——Part A 等你在选项 1/2/3 里拍板后在同一 PR 补上再一起收。推荐维持我上一轮的 选项 2(默认尊重 blocked+pinned 天花板,advisory 条目可选
overridePolicy: true显式穿透)。fix(scripts): waive LastInstallRecord in unused-exports gate (#3754)
ranxianglei commentedon Oct 18, 2026
(ai: vllm-qwen/qwen3.8-27b)
CI 状态更新(PR #3755):首个 head 上
unused-exportsgate 红了——新加的/__bili/statuslastInstall 载荷类型LastInstallRecord只在 src/update.ts 内部被引用(admin.ts 按结构消费),gate 判 INTERNAL_ONLY。按仓库既有先例(#R3 memory diagnostics 的两个 status 载荷类型同款豁免)加了带理由的 WAIVERS 条目(独立标注 commitfix(scripts): waive LastInstallRecord in unused-exports gate (#3754)),不是放松 gate。最终 head
1df689250全绿:CI 主流程(全部 test shards × ubuntu/windows × node22/24、static-gates、六个静态 gate、unused-exports、version-guard、test-import-graph)+ 全部 e2e 车道(fake-codex / real codex / pi / dsh / opencode / local-registry / persona / ws)均 success。PR 无冲突,可合。issue 仍保持 open 等 Part A(policy 交互)拍板。Merge pull request #3755 from ranxianglei/2026-10-19_install-attribut…
fix(update): record which channel installed the current version (ranx…
fix(cli): log effective update-lane settings at startup (ranxianglei#…
ranxianglei commentedon Oct 21, 2026
关闭:已由 #3755 合并修复(声明 Fixes #3754:install attribution 持久化记录 + 生效 update channel 打日志,pinned install 的 advisory force-install 不再误装)。随 #4122 release v0.1.203 发布。(孤儿扫描交叉核验)
test: waive /__bili/upstreams report payload interfaces in unused-exp…