Repository navigation
Conversation
4f7cd7e to
9e36ef8
Compare
|
(ai: DeepSeek-V4.1-Flash) CI 绿:37 绿 / 13 跳 / 0 失败(head |
9e36ef8 to
b0cf220
Compare
(ai: vllm-qwen/qwen3.8-27b) 先对齐状态(以下都是我刚实时拉取的,不复述评论里的数字):
查重:不重复。 本 PR(#6591)是代码侧(dsh-go 宿主启动打一条日志);同族的 #6592 是文档侧(clients.md 加 dsh-go 一节),#6588 是上游 issue。三者范围不同,无重复立项。 我的独立核验(不依赖评论里的数字):
结构化八问:
代码质量:整洁,命名达意,注释讲 why,无死代码/重复/魔法值,测试是真决策表(有牙)。一个非拦截观察: 判定:可合(review 结论)。代码与测试我已独立核验通过,方向与 #6588 一致、无回归、diff 干净、CI 全绿。合并动作归 owner,我不代合。 |
ranxianglei
left a comment
There was a problem hiding this comment.
(ai: vllm-qwen/qwen3.8-27b)
APPROVE
The PR does exactly what the linked issue asked for (its "code" half of the two planned PRs): a once-per-process [dsh-client] boot note when the host is the third-party dsh-go Android app, detected by a pure, unit-tested predicate on the host's DSH_GO_RUNTIME_ROOT stamp. No behavior change, no config surface, no new src/ module.
Regression review (existing behavior on the touched paths):
src/agent/client-build-note.ts— additive export only; the existing functions (maxTestedVersion,walkUpNodeModuleVersion,newerClientBuildMessage,emitNewerClientBuildNote) are byte-identical. The module header comment is updated to record the new resident.src/agent/dsh-native.ts— additive import + a module-level once-flag + one block inapply(), placed right after the #4545 note. WhenDSH_GO_RUNTIME_ROOTis unset (every existing host shape),isDshGoHost()is false → no log, no state change → zero drift for all current hosts. The only new output is oneinfoline in bili.log on the dsh-go host (old: no such line → new: one line per process) — disclosed in the PR body; an additive observation, not a semantic change.- The once-per-process flag + fail-open try/catch mirrors the adjacent #4545 pattern exactly; the flag is set only when the note actually fires, so a log failure retries on the next activation (same house semantics).
- The log message is a fixed string — the env value (a user-specific path) is never echoed into the log (privacy-safe).
- The note's
dsh.client.platform: webclaim is grounded in the shim manifest (src/launcher.ts:3551). - No wire / config-schema / persistence / kernel changes; no cache, retry, cursor, or dedup-key surface touched.
Tests: the decision table pins the tri-state predicate (unset / empty / whitespace-only → false; stamped → true, including surrounding whitespace). The once-per-process glue is not tested in dsh-native.test.ts — consistent with the #4545 note, whose glue is likewise covered only through the shared helper in this file.
已顺手修:PR 正文声称单测覆盖「默认绑定 process.env」,但原测试全部显式传 env 对象,生产调用点的无参默认形式没有回归网——补了默认绑定用例(存/还原 process.env,双向断言),本地 11/11 绿 + typecheck 干净 + commit a8f28f3(纯测试增量,CI 在新 head 重跑中)。
八问:
- 是什么问题:dsh-go(第三方安卓 App,自带 dsh 运行时)宿主上,bili.log 里没有任何信号能区分它与桌面宿主,用户也看不到「插件 web 客户端面在该宿主无落点」这一事实。
- 什么原因导致的:宿主侧没有暴露任何结构化身份信号;唯一到达本车道的信号是宿主给每个子进程盖的
DSH_GO_RUNTIME_ROOT环境变量(proot rootfs 路径)。 - 影响范围与严重程度:仅 dsh-go 宿主(第三方安卓 App);纯观测性缺口——之前完全无日志(可诊断性/体验瑕疵),不影响任何功能。
- 怎么修复的:纯函数
isDshGoHost(env 非空白即判定)放在既有软提示模块 client-build-note.ts,apply()里按 #4545 同款「一次/进程 + fail-open」模式打一条[dsh-client]info 日志;不 gate、不阻塞启动、不改行为。 - 是否有回归问题:无。改动全部为纯增量;
DSH_GO_RUNTIME_ROOT未设时(所有既有宿主形态)行为与日志逐字节不变。高危模式逐项过:无语义漂移、无 fail-fast 变吞错(fail-open 是设计意图且与 #4545 一致)、无阈值/时序/输出格式变化(唯一新输出是 dsh-go 宿主上多一条 info 行,已在 PR 正文披露)。 - 是否破坏缓存:不涉及(未触碰任何缓存/重试/增量游标/去重键路径)。
- 是否改了设计方向:不涉及——按 issue 定的方案原样落地(纯函数 + 一次日志 + 不加配置 + 不新建模块)。
- 是否引入了新的配置:无。
DSH_GO_RUNTIME_ROOT是第三方宿主盖的戳,不是 bili 的 env 开关/配置面(PR 明确「不加配置字段或 env 开关」)。
判定:可合(APPROVE)。CI 在 b0cf220 全绿(30 checks,0 failed;e2e 车道按三层 CI 设计仅 ci:full/定时触发,跳过属预期);我补的测试-only commit 后新 head a8f28f3 的 CI 重跑中。
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) Review complete — posted as APPROVE (review #5904518818).
Verdict: mergeable (APPROVE). |
a8f28f3 to
39a0338
Compare
ranxianglei
left a comment
There was a problem hiding this comment.
(ai: vllm-qwen/qwen3.8-27b)
APPROVE (re-review on the rebased head 39a0338)
This head is a clean rebase of the same two commits onto master f21b601 (batch8-wave8). Verified:
- Both commit patches are byte-identical to the state I reviewed and approved on head b0cf220 (feat 824e842 ≡ b0cf220; fix 39a0338 ≡ a8f28f3) — only the index lines differ.
- Master has made NO changes to the three files this PR touches (
src/agent/client-build-note.ts,src/agent/dsh-native.ts,tests/client-build-note.test.ts) since the old base 3858b69 → no new interaction introduced by the rebase. - CI on head 39a0338: 0 failures (lane-confirmed green; at my last mirror-cache snapshot 5 checks were queued/in-progress, zero red). e2e lanes skipped by design (three-layer CI #3295: the dsh-native e2e lane runs only on
ci:full/ 30-min cron).
The substance is unchanged from my prior review — the PR does exactly what #6588 asked for (its "code" half): a once-per-process [dsh-client] boot note on the third-party dsh-go Android host, detected by the pure, unit-tested function isDshGoHost on the host's DSH_GO_RUNTIME_ROOT stamp. Purely additive; when the env stamp is unset (every existing host shape) behavior and logs are byte-identical. No wire / config-schema / persistence / kernel / cache surface touched. The once-per-process flag + fail-open try/catch mirrors the adjacent #4545 pattern; the log message is a fixed string (the env value is never echoed — privacy-safe). No kernel changes → no decision-escalation flow. No new findings on this head.
八问(与上一轮一致,无变化):
- 是什么问题:dsh-go(第三方安卓 App,自带 dsh 运行时)宿主上,bili.log 里没有任何信号能区分它与桌面宿主,用户也看不到「插件 web 客户端面在该宿主无落点」这一事实。
- 什么原因导致的:宿主侧没有暴露任何结构化身份信号;唯一到达本车道的信号是宿主给每个子进程盖的
DSH_GO_RUNTIME_ROOT环境变量(proot rootfs 路径)。 - 影响范围与严重程度:仅 dsh-go 宿主(第三方安卓 App);纯观测性缺口——之前完全无日志(可诊断性/体验瑕疵),不影响任何功能。
- 怎么修复的:纯函数
isDshGoHost(env 非空白即判定)放在既有软提示模块 client-build-note.ts,apply()里按 #4545 同款「一次/进程 + fail-open」模式打一条[dsh-client]info 日志;不 gate、不阻塞启动、不改行为。 - 是否有回归问题:无。改动全部为纯增量;
DSH_GO_RUNTIME_ROOT未设时(所有既有宿主形态)行为与日志逐字节不变。高危模式逐项过:无语义漂移、无 fail-fast 变吞错(fail-open 是设计意图且与 #4545 一致)、无阈值/时序/输出格式变化(唯一新输出是 dsh-go 宿主上多一条 info 行,已在 PR 正文披露)。rebase 后重新核对:master 未触碰本 PR 三个文件,无新增交互。 - 是否破坏缓存:不涉及(未触碰任何缓存/重试/增量游标/去重键路径)。
- 是否改了设计方向:不涉及——按 issue 定的方案原样落地(纯函数 + 一次日志 + 不加配置 + 不新建模块)。
- 是否引入了新的配置:无。
DSH_GO_RUNTIME_ROOT是第三方宿主盖的戳,不是 bili 的 env 开关/配置面(PR 明确「不加配置字段或 env 开关」)。
判定:可合(APPROVE)。
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) Re-review complete on the rebased head 39a0338 — posted as APPROVE (review #5906182287).
八问与上一轮一致(无变化,全文见 review 正文);判定:可合(APPROVE)。 |
39a0338 to
9ab8385
Compare
9ab8385 to
ddf376c
Compare
ranxianglei
left a comment
There was a problem hiding this comment.
(ai: vllm-qwen/qwen3.8-27b)
APPROVE (re-review on the rebased head ddf376c)
This head is another clean rebase of the same two commits onto master e7a42ba (the #6798 merge). Verified:
- Both commit patches are byte-identical to the state I reviewed and approved on heads b0cf220 and 39a0338 (feat 7f7d060 ≡ 824e842 ≡ b0cf220; fix ddf376c ≡ 39a0338 ≡ a8f28f3) — the feat patch is identical down to the index lines.
- Master made no changes to the three files this PR touches (
src/agent/client-build-note.ts,src/agent/dsh-native.ts,tests/client-build-note.test.ts) since the prior base f21b601 → the rebase introduces no new interaction. PR diff vs new master is unchanged: 3 files, 52 insertions / 3 deletions. - CI on head ddf376c: 0 failures (lane-confirmed green; at my last mirror-cache snapshot 11 test/gate lanes were green, 12 e2e lanes skipped by design per three-layer CI #3295, and 7 gate/docs lanes — plan, lane-guard, kernel-guard, docs-sync, architecture-docs, lock-sync, docs-coverage — were still queued; none can fail for this PR: no kernel change, no new
src/module, no config surface, no dependency change).
Substance is unchanged from my two prior reviews — the PR does exactly what #6588 asked for (its "code" half): a once-per-process [dsh-client] boot note on the third-party dsh-go Android host, detected by the pure, unit-tested function isDshGoHost on the host's DSH_GO_RUNTIME_ROOT stamp. Purely additive; when the env stamp is unset (every existing host shape) behavior and logs are byte-identical. No wire / config-schema / persistence / kernel / cache surface touched. The once-per-process flag + fail-open try/catch mirrors the adjacent #4545 pattern; the log message is a fixed string (the env value is never echoed — privacy-safe). No kernel changes → no decision-escalation flow. No new findings on this head — nothing to fix on the spot.
八问(与历轮一致,无变化):
- 是什么问题:dsh-go(第三方安卓 App,自带 dsh 运行时)宿主上,bili.log 里没有任何信号能区分它与桌面宿主,用户也看不到「插件 web 客户端面在该宿主无落点」这一事实。
- 什么原因导致的:宿主侧没有暴露任何结构化身份信号;唯一到达本车道的信号是宿主给每个子进程盖的
DSH_GO_RUNTIME_ROOT环境变量(proot rootfs 路径)。 - 影响范围与严重程度:仅 dsh-go 宿主(第三方安卓 App);纯观测性缺口——之前完全无日志(可诊断性/体验瑕疵),不影响任何功能。
- 怎么修复的:纯函数
isDshGoHost(env 非空白即判定)放在既有软提示模块 client-build-note.ts,apply()里按 #4545 同款「一次/进程 + fail-open」模式打一条[dsh-client]info 日志;不 gate、不阻塞启动、不改行为。 - 是否有回归问题:无。改动全部为纯增量;
DSH_GO_RUNTIME_ROOT未设时(所有既有宿主形态)行为与日志逐字节不变。高危模式逐项过:无语义漂移、无 fail-fast 变吞错(fail-open 是设计意图且与 #4545 一致)、无阈值/时序/输出格式变化(唯一新输出是 dsh-go 宿主上多一条 info 行,已在 PR 正文披露)。rebase 后重新核对:master 未触碰本 PR 三个文件,无新增交互。 - 是否破坏缓存:不涉及(未触碰任何缓存/重试/增量游标/去重键路径)。
- 是否改了设计方向:不涉及——按 issue 定的方案原样落地(纯函数 + 一次日志 + 不加配置 + 不新建模块)。
- 是否引入了新的配置:无。
DSH_GO_RUNTIME_ROOT是第三方宿主盖的戳,不是 bili 的 env 开关/配置面(PR 明确「不加配置字段或 env 开关」)。
判定:可合(APPROVE)。
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) Re-review complete on the rebased head ddf376c — posted as APPROVE (review #5910012287).
八问与历轮一致(无变化,全文见 review 正文);判定:可合(APPROVE)。 |
a414fd7 to
50f9583
Compare
ranxianglei
left a comment
There was a problem hiding this comment.
(ai: vllm-qwen/qwen3.8-27b)
APPROVE (re-review on the rebased head 50f9583)
This head is the same two commits rebased onto master 2e3cfc9 (the #6824 merge). This rebase is NOT a no-op — master landed a 168-line change to src/agent/dsh-native.ts since the prior base, so I re-verified the interaction rather than assuming it away:
- feat patch: content is byte-identical to the state I reviewed and approved on heads b0cf220 / 39a0338 / ddf376c (feat 1c5e9d0 ≡ 7f7d060 ≡ 824e842 ≡ b0cf220) — the ONLY delta is the two hunk header line numbers (
@@ -285→@@ -276,@@ -2808→@@ -2846), i.e. the block shifted position because master's edit changed the file length. The added lines are identical. - fix patch: byte-identical (50f9583 ≡ ddf376c ≡ 39a0338 ≡ a8f28f3).
- Master's dsh-native.ts change does NOT interact with this PR: it is the
toolsOwnertool-registration/recovery refactor + the #2082/#2101 activation-reset, all in the EARLY part ofapply()(lines ~1968–1985). This PR's block sits far later (~line 2847), between the #4545dshNewerBuildNotedblock and the #1772/#3354 comment. I confirmed all anchors are intact on the new base: theplan.mode === "off"early return (line 1955) still precedes the probe; the #4545 flag (line 278), the #4545 note block (2839–2847), and the #1772/#3354 comment (2849) are all present. No semantic interaction. - CI on head 50f9583: 0 failures (lane-confirmed green; at my last mirror-cache snapshot the test shards were queued/in-progress and the 12 e2e lanes skipped by design per three-layer CI #3295 — the content is byte-identical to three prior heads whose test shards were all green, so no realistic failure mode).
Substance is unchanged from my three prior reviews — the PR does exactly what #6588 asked for (its "code" half): a once-per-process [dsh-client] boot note on the third-party dsh-go Android host, detected by the pure, unit-tested function isDshGoHost on the host's DSH_GO_RUNTIME_ROOT stamp. Purely additive; when the env stamp is unset (every existing host shape) behavior and logs are byte-identical. No wire / config-schema / persistence / kernel / cache surface touched. The once-per-process flag + fail-open try/catch mirrors the adjacent #4545 pattern; the log message is a fixed string (the env value is never echoed — privacy-safe). No kernel changes → no decision-escalation flow. No new findings on this head — nothing to fix on the spot.
八问(与历轮一致,无变化):
- 是什么问题:dsh-go(第三方安卓 App,自带 dsh 运行时)宿主上,bili.log 里没有任何信号能区分它与桌面宿主,用户也看不到「插件 web 客户端面在该宿主无落点」这一事实。
- 什么原因导致的:宿主侧没有暴露任何结构化身份信号;唯一到达本车道的信号是宿主给每个子进程盖的
DSH_GO_RUNTIME_ROOT环境变量(proot rootfs 路径)。 - 影响范围与严重程度:仅 dsh-go 宿主(第三方安卓 App);纯观测性缺口——之前完全无日志(可诊断性/体验瑕疵),不影响任何功能。
- 怎么修复的:纯函数
isDshGoHost(env 非空白即判定)放在既有软提示模块 client-build-note.ts,apply()里按 #4545 同款「一次/进程 + fail-open」模式打一条[dsh-client]info 日志;不 gate、不阻塞启动、不改行为。 - 是否有回归问题:无。改动全部为纯增量;
DSH_GO_RUNTIME_ROOT未设时(所有既有宿主形态)行为与日志逐字节不变。高危模式逐项过:无语义漂移、无 fail-fast 变吞错(fail-open 是设计意图且与 #4545 一致)、无阈值/时序/输出格式变化(唯一新输出是 dsh-go 宿主上多一条 info 行,已在 PR 正文披露)。本轮 rebase 重新核对:master 对 dsh-native.ts 的 168 行改动(toolsOwner 重构 + #2082/#2101 激活重置)位于 apply() 前段,与本 PR 块(~2847 行)无语义交互,锚点(早退 1955 / #4545 块 2839–2847 / #1772#3354 注释 2849)全部完好。 - 是否破坏缓存:不涉及(未触碰任何缓存/重试/增量游标/去重键路径)。
- 是否改了设计方向:不涉及——按 issue 定的方案原样落地(纯函数 + 一次日志 + 不加配置 + 不新建模块)。
- 是否引入了新的配置:无。
DSH_GO_RUNTIME_ROOT是第三方宿主盖的戳,不是 bili 的 env 开关/配置面(PR 明确「不加配置字段或 env 开关」)。
判定:可合(APPROVE)。
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) Re-review complete on the rebased head 50f9583 — posted as APPROVE (review #5911008438).
八问与历轮一致(无变化,全文见 review 正文);判定:可合(APPROVE)。 |
50f9583 to
310c1b9
Compare
ranxianglei
left a comment
There was a problem hiding this comment.
(ai: vllm-qwen/qwen3.8-27b)
APPROVE (re-review on the rebased head 310c1b9)
This head is the same two commits rebased onto master f648217 (the #6823 merge). This rebase is a no-op for this PR — master made no changes to the three files this PR touches since the prior base 2e3cfc9 (verified git diff 2e3cfc973b..origin/master --stat over the three files → empty):
- feat patch: byte-identical to the state I reviewed and approved on heads b0cf220 / 39a0338 / ddf376c / 50f9583 (feat ab3b1e8 ≡ 1c5e9d0 ≡ 7f7d060 ≡ 824e842 ≡ b0cf220).
- fix patch: byte-identical (310c1b9 ≡ 50f9583 ≡ ddf376c ≡ 39a0338 ≡ a8f28f3).
- PR diff vs new master unchanged: 3 files, 52 insertions / 3 deletions.
- CI on head 310c1b9: 0 failures (lane-confirmed green; at my last mirror-cache snapshot 9 lanes were green, 9 e2e lanes skipped by design per three-layer CI #3295, and 12 gate/docs lanes — gate, lifecycle-ledger-guard, kernel-guard, test-import-graph, config-surface-guard, plan, unused-exports, lane-guard, docs-sync, docs-coverage, pi-subagents-guard, architecture-docs — were queued; none can fail for this PR: no kernel change, no new
src/module, no config surface, no dependency change, nopi-subagents/change).
Substance is unchanged from my four prior reviews — the PR does exactly what #6588 asked for (its "code" half): a once-per-process [dsh-client] boot note on the third-party dsh-go Android host, detected by the pure, unit-tested function isDshGoHost on the host's DSH_GO_RUNTIME_ROOT stamp. Purely additive; when the env stamp is unset (every existing host shape) behavior and logs are byte-identical. No wire / config-schema / persistence / kernel / cache surface touched. The once-per-process flag + fail-open try/catch mirrors the adjacent #4545 pattern; the log message is a fixed string (the env value is never echoed — privacy-safe). No kernel changes → no decision-escalation flow. No new findings on this head — nothing to fix on the spot.
八问(与历轮一致,无变化):
- 是什么问题:dsh-go(第三方安卓 App,自带 dsh 运行时)宿主上,bili.log 里没有任何信号能区分它与桌面宿主,用户也看不到「插件 web 客户端面在该宿主无落点」这一事实。
- 什么原因导致的:宿主侧没有暴露任何结构化身份信号;唯一到达本车道的信号是宿主给每个子进程盖的
DSH_GO_RUNTIME_ROOT环境变量(proot rootfs 路径)。 - 影响范围与严重程度:仅 dsh-go 宿主(第三方安卓 App);纯观测性缺口——之前完全无日志(可诊断性/体验瑕疵),不影响任何功能。
- 怎么修复的:纯函数
isDshGoHost(env 非空白即判定)放在既有软提示模块 client-build-note.ts,apply()里按 #4545 同款「一次/进程 + fail-open」模式打一条[dsh-client]info 日志;不 gate、不阻塞启动、不改行为。 - 是否有回归问题:无。改动全部为纯增量;
DSH_GO_RUNTIME_ROOT未设时(所有既有宿主形态)行为与日志逐字节不变。高危模式逐项过:无语义漂移、无 fail-fast 变吞错(fail-open 是设计意图且与 #4545 一致)、无阈值/时序/输出格式变化(唯一新输出是 dsh-go 宿主上多一条 info 行,已在 PR 正文披露)。本轮 rebase 重新核对:master 自旧 base 起未触碰本 PR 三个文件,纯 no-op rebase,无新增交互。 - 是否破坏缓存:不涉及(未触碰任何缓存/重试/增量游标/去重键路径)。
- 是否改了设计方向:不涉及——按 issue 定的方案原样落地(纯函数 + 一次日志 + 不加配置 + 不新建模块)。
- 是否引入了新的配置:无。
DSH_GO_RUNTIME_ROOT是第三方宿主盖的戳,不是 bili 的 env 开关/配置面(PR 明确「不加配置字段或 env 开关」)。
判定:可合(APPROVE)。
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) Re-review complete on the rebased head 310c1b9 — posted as APPROVE (review #5911824266).
八问与历轮一致(无变化,全文见 review 正文);判定:可合(APPROVE)。 |
310c1b9 to
a29c487
Compare
ranxianglei
left a comment
There was a problem hiding this comment.
(ai: vllm-qwen/qwen3.8-27b)
Re-review on the rebased head a29c487 — APPROVE。
- 该 head 是同样的两个 commit 干净 rebase 到当前 master 尖端 de895aa(#6889 合并)之上:feat 1c9f521、fix a29c487。
- 两个 commit 补丁与我在历轮 head(b0cf22066 / 39a0338 / ddf376c / 50f9583 / 310c1b9)上审过并批准的状态逐字节一致(feat 1c9f521 ≡ ab3b1e8;fix a29c487 ≡ 310c1b9)——仅 index 行不同。
- master 自上一 base f648217 以来对本 PR 触碰的 3 个文件零改动(
git diff f648217cb8..origin/master -- src/agent/client-build-note.ts src/agent/dsh-native.ts tests/client-build-note.test.ts为空)→ rebase 不引入新交互。 - 新 base 上锚点全部复核:
plan.mode === "off"早退(src/agent/dsh-native.ts:1956)仍先于新块(约 2847 行);新块位于 #4545dshNewerBuildNoted块与 #1772/#3354 注释之间;once-per-process 标志(279 行)沿用既有模式;logHostEvent("info", "[dsh-client]", …)与 src/agent/host-log.ts:26 的签名一致。 - CI on head a29c487:37 success / 13 skipped / 0 failure(50 个 check run 全部完成;e2e 车道按三层 CI #3295 设计跳过)。
- 实质不变:纯增量的 dsh-go 宿主一次/进程
[dsh-client]启动注记,经纯函数、有单测的isDshGoHost判定;env 未盖章时(所有既有宿主形态)行为与日志零漂移;不碰 wire/config/持久化/kernel/缓存面;无 kernel 改动 → 无需决策升级流程。 - 本 head 无新发现——无需顺手修。
结构化八问:
- 是什么问题:dsh-go(第三方安卓 App,自带 dsh 运行时)宿主上,
bili.log里没有任何能区分它与桌面宿主的地方;启动时打一条可辨认的[dsh-client]日志。 - 什么原因导致的:该宿主唯一能传到这条车道的信号是它给每个子进程盖的
DSH_GO_RUNTIME_ROOTenv;除此之外无其他可区分点。 - 影响范围与严重程度:仅 dsh-go 宿主触发;纯日志、不改行为/流量/配置;属可诊断性增强,无外部行为影响(其他宿主
isDshGoHost()恒 false)。 - 怎么修复的:纯函数
isDshGoHost(读DSH_GO_RUNTIME_ROOT,空白视为未盖章、fail-open)+apply()里一次/进程的logHostEvent日志,接在 #4545 note 之后,沿用文件既有的 once-per-process 模式。 - 是否有回归问题:无。纯增量;无 wire/config/持久化/行为变更;
try/catchfail-open,env 异常保持静默。 - 是否破坏缓存:不涉及。
- 是否改了设计方向:不涉及。
- 是否引入了新的配置:不涉及——读的是宿主自带的
DSH_GO_RUNTIME_ROOT,不是 bili 新加的开关/env。
判定:可合(APPROVE)。合并动作归 owner,我不代合。
(ai: vllm-qwen/qwen3.8-27b) Re-review complete on the rebased head a29c487 — posted as APPROVE (review #5916584850)。
八问与历轮一致(无变化,全文见 review 正文);判定:可合(APPROVE)。合并动作归 owner,我不代合。 |
a29c487 to
2e05b7a
Compare
ranxianglei
left a comment
There was a problem hiding this comment.
(ai: vllm-qwen/qwen3.8-27b)
Re-review on the rebased head 2e05b7a — APPROVE。
- 该 head 是同样的两个 commit 干净 rebase 到当前 master 尖端 6a641f3(release v0.1.216 合并 #6938)之上:feat 3c60533、fix 2e05b7a。
- fix 补丁逐字节一致(2e05b7a7ce ≡ 310c1b9);feat 补丁内容逐字节一致(3c60533ebe ≡ 1c9f521 ≡ ab3b1e8),唯一差异是 hunk 头行号(@@ -2867,6 +2868,23 @@ vs @@ -2846,6 +2847,23 @@)——master 在本块之前加了 21 行,块整体下移,新增行本身未变。
- master 对 dsh-native.ts 的改动(#6880 purpose 声明:
GateAttribution/LlmDispatchScope加purpose字段、llm/stream捕获、x-bili-plugin-purpose头,位于 1221–2620 行)与本 PR 块(2877 行)无交互——不同机制、不同位置,本块只读 env 打一条日志,不触碰 dispatch/headers 路径。 - 新 base 上锚点全部复核在位:
plan.mode === "off"早退(src/agent/dsh-native.ts:1961)先于新块;新块位于 #4545dshNewerBuildNoted块与 #1772/#3354 注释之间;once-per-process 标志(279 行)沿用既有模式;logHostEvent("info", "[dsh-client]", …)与 host-log.ts:26 签名一致。 - CI on head 2e05b7a:37 success / 13 skipped / 0 failure(50 个 check run 全部完成;e2e 车道按三层 CI #3295 设计跳过)。
- 实质不变:纯增量的 dsh-go 宿主一次/进程
[dsh-client]启动注记,经纯函数、有单测的isDshGoHost判定;env 未盖章时(所有既有宿主形态)行为与日志零漂移;不碰 wire/config/持久化/kernel/缓存面;无 kernel 改动 → 无需决策升级流程。 - 本 head 无新发现——无需顺手修。
结构化八问:
- 是什么问题:dsh-go(第三方安卓 App,自带 dsh 运行时)宿主上,
bili.log里没有任何能区分它与桌面宿主的地方;启动时打一条可辨认的[dsh-client]日志。 - 什么原因导致的:该宿主唯一能传到这条车道的信号是它给每个子进程盖的
DSH_GO_RUNTIME_ROOTenv;除此之外无其他可区分点。 - 影响范围与严重程度:仅 dsh-go 宿主触发;纯日志、不改行为/流量/配置;属可诊断性增强,无外部行为影响(其他宿主
isDshGoHost()恒 false)。 - 怎么修复的:纯函数
isDshGoHost(读DSH_GO_RUNTIME_ROOT,空白视为未盖章、fail-open)+apply()里一次/进程的logHostEvent日志,接在 #4545 note 之后,沿用文件既有的 once-per-process 模式。 - 是否有回归问题:无。纯增量;无 wire/config/持久化/行为变更;
try/catchfail-open,env 异常保持静默;master 的 #6880 改动与本块无交互(已逐行核对)。 - 是否破坏缓存:不涉及。
- 是否改了设计方向:不涉及。
- 是否引入了新的配置:不涉及——读的是宿主自带的
DSH_GO_RUNTIME_ROOT,不是 bili 新加的开关/env。
判定:可合(APPROVE)。合并动作归 owner,我不代合。
(ai: vllm-qwen/qwen3.8-27b) Re-review complete on the rebased head 2e05b7a — posted as APPROVE (review #5937290244)。
八问与历轮一致(无变化,全文见 review 正文);判定:可合(APPROVE)。合并动作归 owner,我不代合。 |
2e05b7a to
7a3b3d1
Compare
ranxianglei
left a comment
There was a problem hiding this comment.
(ai: vllm-qwen/qwen3.8-27b)
Re-review on the rebased head 7a3b3d1 — APPROVE。
- 该 head 是同样的两个 commit 干净 rebase 到当前 master 尖端 77fe0b1(#6592 合并——本 PR 在 #6588 里的「文档半边」)之上:feat 01c2a26、fix 7a3b3d1。
- 两个 commit 补丁与我历轮批准的状态逐字节一致(连 index 行都没变——base 文件状态与上一 head 相同):feat 01c2a26 ≡ 3c60533 ≡ 1c9f521;fix 7a3b3d1 ≡ 2e05b7a ≡ 310c1b9。
- master 自上一 base 6a641f3 以来对本 PR 触碰的 3 个文件零改动(
git diff 6a641f3785..origin/master对这 3 个文件为空)→ 这次 rebase 对 PR 内容是 no-op,不引入新交互。 - CI on head 7a3b3d1:37 success / 13 skipped / 0 failure(50 个 check run 全部完成;e2e 车道按三层 CI #3295 设计跳过)。
- 实质不变:纯增量的 dsh-go 宿主一次/进程
[dsh-client]启动注记,经纯函数、有单测的isDshGoHost判定;env 未盖章时(所有既有宿主形态)行为与日志零漂移;不碰 wire/config/持久化/kernel/缓存面;无 kernel 改动 → 无需决策升级流程。 - 本 head 无新发现——无需顺手修。
结构化八问:
- 是什么问题:dsh-go(第三方安卓 App,自带 dsh 运行时)宿主上,
bili.log里没有任何能区分它与桌面宿主的地方;启动时打一条可辨认的[dsh-client]日志。 - 什么原因导致的:该宿主唯一能传到这条车道的信号是它给每个子进程盖的
DSH_GO_RUNTIME_ROOTenv;除此之外无其他可区分点。 - 影响范围与严重程度:仅 dsh-go 宿主触发;纯日志、不改行为/流量/配置;属可诊断性增强,无外部行为影响(其他宿主
isDshGoHost()恒 false)。 - 怎么修复的:纯函数
isDshGoHost(读DSH_GO_RUNTIME_ROOT,空白视为未盖章、fail-open)+apply()里一次/进程的logHostEvent日志,接在 #4545 note 之后,沿用文件既有的 once-per-process 模式。 - 是否有回归问题:无。纯增量;无 wire/config/持久化/行为变更;
try/catchfail-open,env 异常保持静默。 - 是否破坏缓存:不涉及。
- 是否改了设计方向:不涉及。
- 是否引入了新的配置:不涉及——读的是宿主自带的
DSH_GO_RUNTIME_ROOT,不是 bili 新加的开关/env。
判定:可合(APPROVE)。合并动作归 owner,我不代合。
(ai: vllm-qwen/qwen3.8-27b) Re-review complete on the rebased head 7a3b3d1 — posted as APPROVE (review #5938925873)。
八问与历轮一致(无变化,全文见 review 正文);判定:可合(APPROVE)。合并动作归 owner,我不代合。 |
The DSH Go Android app ships its own dsh runtime inside a proot rootfs and its client is native, so this bundle's web client face (dsh.client.platform: web — the Context tab and the settings page) has no surface to render into there, while the host-side lane is unaffected. Nothing in bili.log — the only readable record on that host — identified it, so a support read could not tell an Android host from a desktop one. Adds isDshGoHost() next to the lane's existing soft-note helpers in client-build-note.ts (unit-tested decision table) and one once-per-process [dsh-client] line in the dsh lane, keyed on DSH_GO_RUNTIME_ROOT. No behavior change, no new config surface, no new src module. Refs ranxianglei#6588
7a3b3d1 to
161dd4f
Compare
(ai: vllm-qwen/qwen3.8-27b) The failing check Evidence it's a flake, not the PR's fault:
Action: 八问:
判定: PR 代码无问题,CI 红是 Windows flake。已触发重跑,等结果。若干净 runner 再红则升档 ci-fixes。 |
[ework] CI fix verified green ✓ |
ranxianglei
left a comment
There was a problem hiding this comment.
(ai: vllm-qwen/qwen3.8-27b)
Re-review on the rebased head 161dd4f — APPROVE。
- 该 head 是同样的两个 commit 干净 rebase 到当前 master 尖端 a446a3c(#6827 batch11-wave11 合并)之上:feat e783755、fix 161dd4f。
- 两个 commit 的新增行内容与我历轮批准的状态逐字节一致(feat ≡ 01c2a26 ≡ 3c60533 ≡ 1c9f521;fix ≡ 7a3b3d1 ≡ 2e05b7a ≡ 310c1b9);唯一差异是 feat 的 hunk 头行号(@@ -2877,6 +2878,23 @@,较上一 head 下移 10 行)——与 master 在本块之前净加 10 行一致(#6770 的
compactionCoverageNoted标志 +6、attributionOf内覆盖读数 +9、gateCoverageSuffix收缩 -5)。 - master 对 dsh-native.ts 的改动(#6770 压缩覆盖读数:import 换
compactionCoverageText、gateCoverageSuffix委托、首个路由请求打一次覆盖读数、_resetCompactionCoverageNoteForTest钩子,位于 70/294/1251/1341/3129 行)与本 PR 块(2887 行,只读 env 打一条日志)不同机制、不同位置,无共享状态、无交互。 - 新 base 上锚点全部复核在位:
plan.mode === "off"早退(src/agent/dsh-native.ts:1971)先于新块;新块位于 #4545dshNewerBuildNoted块(2875 行结束)与 #1772/#3354 注释(2898 行起)之间;once-per-process 标志(279 行)沿用既有模式;logHostEvent("info", "[dsh-client]", …)与 host-log.ts:26 签名一致。 - CI on head 161dd4f:37 success / 13 skipped / 0 failure(50 个 check run 全部完成;e2e 车道按三层 CI #3295 设计跳过)。
- 实质不变:纯增量的 dsh-go 宿主一次/进程
[dsh-client]启动注记,经纯函数、有单测的isDshGoHost判定;env 未盖章时(所有既有宿主形态)行为与日志零漂移;不碰 wire/config/持久化/kernel/缓存面;无 kernel 改动 → 无需决策升级流程。 - 本 head 无新发现——无需顺手修。
结构化八问:
- 是什么问题:dsh-go(第三方安卓 App,自带 dsh 运行时)宿主上,
bili.log里没有任何能区分它与桌面宿主的地方;启动时打一条可辨认的[dsh-client]日志。 - 什么原因导致的:该宿主唯一能传到这条车道的信号是它给每个子进程盖的
DSH_GO_RUNTIME_ROOTenv;除此之外无其他可区分点。 - 影响范围与严重程度:仅 dsh-go 宿主触发;纯日志、不改行为/流量/配置;属可诊断性增强,无外部行为影响(其他宿主
isDshGoHost()恒 false)。 - 怎么修复的:纯函数
isDshGoHost(读DSH_GO_RUNTIME_ROOT,空白视为未盖章、fail-open)+apply()里一次/进程的logHostEvent日志,接在 #4545 note 之后,沿用文件既有的 once-per-process 模式。 - 是否有回归问题:无。纯增量;无 wire/config/持久化/行为变更;
try/catchfail-open,env 异常保持静默;master 的 #6770 改动与本块无交互(已逐行核对)。 - 是否破坏缓存:不涉及。
- 是否改了设计方向:不涉及。
- 是否引入了新的配置:不涉及——读的是宿主自带的
DSH_GO_RUNTIME_ROOT,不是 bili 新加的开关/env。
判定:可合(APPROVE)。合并动作归 owner,我不代合。
(ai: vllm-qwen/qwen3.8-27b) Re-review complete on the rebased head 161dd4f — posted as APPROVE (review #5962821913)。
八问与历轮一致(无变化,全文见 review 正文);判定:可合(APPROVE)。合并动作归 owner,我不代合。 |
[ework] CI fix verified green ✓ |
关联:#6588(上游 issue)
改了什么
宿主是 dsh-go(第三方安卓 App,自带 dsh 运行时)时,启动打一条
[dsh-client]日志。判定用的纯函数放client-build-note.ts(该文件头本就写了"第二个检查加一个常量加一个调用点即可"),配单测。不改行为、不加配置字段或 env 开关、不新建
src/模块。为什么
这个宿主上能读的只有
bili.log,里面没有任何地方能区分 dsh-go 与桌面宿主(实测见 #6588)。这条日志同时告诉用户:本插件的 UI 是 web 客户端面(dsh.client.platform: web),在那个宿主原生的客户端里没有落点,宿主面不受影响。改动
src/agent/client-build-note.tssrc/agent/dsh-native.ts(接在#4545那条提示之后,一次/进程)tests/client-build-note.test.ts加决策表:未设 / 空串 / 纯空白 / 已设,含默认绑定process.env。验证
npm run typecheck干净;node --import tsx --test tests/client-build-note.test.ts本地绿(完整判定看远端 CI)。DSH_GO_RUNTIME_ROOT各跑一次:该行只出现一次,其余日志无差异。备注
console.warn:该宿主里 stderr 进引擎捕获日志,排查看的是bili.log。engines.dsh不在本 PR,归 [dsh] DSH Go Host: Verified Working but Undocumented | [dsh] DSH Go 宿主:实测可用但未文档化 #6588。