Skip to content

[PR] feat: idempotent triage-label backfill script + backfill run report | 幂等 triage 标签补打脚本与补打报告 - #7110

Open
ranxianglei wants to merge 1 commit into
masterfrom
2026-11-18_triage-label-backfill
Open

ranxianglei wants to merge 1 commit into
masterfrom
2026-11-18_triage-label-backfill

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

Closes #7059

是什么

交付幂等补打脚本 scripts/triage-label-backfill.mjs,并报告已完成的一次全量补打。

背景: 2026-11-12 起「source issue 不许 relabel」硬规则被 worker 误读为「接单不打标签」,新 issue 带标签率从 30/40 掉到 15/40。2026-11-17 规则细化(接单必须打标签、只禁改标题/关单/改正文)后,存量漏打仍在。owner 2026-11-18 扩大范围: 补打对象 = 所有缺 p1/p2/p3 的 open issue(不再限于零标签),顺带补齐缺失的宿主车道与 scope/*。

脚本行为(scripts/triage-label-backfill.mjs)

  • 目标: 所有缺 p1/p2/p3 的 open issue(含「有标签但缺 p」与「零标签」);跳过 [根因] 聚合类(分类管道匹配对象,§5)
  • 判定口径(reference/triage.md):
    • 优先级: 标题锚定、保守 —— p1 仅强信号(崩溃/数据损坏/不可用/缓存泄露类,§1 owner 2026-10-19 口径);拿不准一律 p2 并进复核清单,不猜 p1;feature 类固定 p2
    • 宿主车道: 仅当标题或正文恰好指向单一宿主(跨车道不打);已有车道标签不重复打
    • scope/*: 标题宽规则 → 正文严规则(正文先剥 fenced code block —— 引用日志/配置里的子系统词是证据不是领域);已有 scope 标签不重复打
  • 红线(§5): 只增不删、不 rename、不 close、不改正文;POST 后校验响应含全部请求标签,否则抛错
  • 幂等: 第二遍 0 变更(实测)
  • 限流: 共享 token 的 core 限流小时级重置,403/429 睡到 X-RateLimit-Reset 重试(≤24 窗口)
  • 用法: GITHUB_TOKEN=... node scripts/triage-label-backfill.mjs [--dry-run];输出 markdown 清单(issue→标签 表 + p1/p3/p2 复核列表),可直接贴总账

补打运行(2026-11-18)

补打清单 (79)

补打清单 (issue → 标签)

# 优先级 车道(终态) scope(终态) 本次新增 标题
#7108 p2 — scope/other p2, scope/other Scheduled full test failed: 0e475ce | 定时全量测试失败: 0e475ce
#7106 p2 dsh scope/wiring p2, dsh, scope/wiring [Drive-by] client-local doom gate prices the whole body, not the prompt mass (proxy-down / side-requ
#7103 p2 dsh scope/storage p2, dsh, scope/storage Unified shadow storage DIGEST DRIFT: unified replay diverges from legacy load view, FROZEN envelope
#7100 p2 — scope/kernel p2, scope/kernel [Bug][compress][externalSummary] Invalid budget (e.g., specifying only targetTimeoutMs: 90000 with
#7099 p2 dsh scope/storage p2, dsh, scope/storage Egress fuse rejects the first request of a forked or subagent session (body 5.6 MB; ~1.03M tokens la
#7098 p2 — scope/kernel p2, scope/kernel bili compress gate false-denies legitimate payloads: any non-resolving hex run is treated as a fabri
#7075 p2 dsh scope/other p2, dsh, scope/other Upgrade error: dsh ref is unknown | 升级报错dsh ref is unknown
#7063 p2 hermes scope/kernel p2, hermes, scope/kernel Hermes plugin: MITM-domain discovery misses the model: block (provider/base_url nested under model:)
#7049 p2 opencode scope/wiring p2, opencode, scope/wiring compress: model re-issued identical compress 57x with no-net-shrink refusals until client abort (ope
#7013 p2 dsh scope/wiring p2, dsh, scope/wiring [Bug] estimateRawBodyBreakdown counts non-prompt extension fields toward the fuse budget, causing le
#6985 p2 dsh scope/kernel p2, dsh, scope/kernel [Bug][dsh] Overlapping block-range batches can fold skipped summaries without carrying their objecti
#6976 p2 dsh scope/wiring p2, dsh, scope/wiring [Bug][dsh] auto-review reviewer request is unattributable by design: the >1e6-token review body is r
#6972 p1 dsh scope/storage p1, dsh, scope/storage DSH: uninstalling billion-context permanently bricks existing long sessions — no downgrade path from
#6965 p1 pi scope/kernel p1, pi, scope/kernel pi inline: After compression, requests sent to the model intermittently lose all summary blocks — th
#6964 p2 — scope/kernel p2, scope/kernel [v1internal / acp-loop] wrapV1ResponseJson wraps SSE emitError inside response.error (silently swall
#6963 p2 gemini scope/wiring p2, gemini, scope/wiring [v1internal] Missing 1M context window for Antigravity/Gemini-4 models + continuationToken payload m
#6946 p2 dsh scope/wiring p2, dsh, scope/wiring [Bug][compress] Tail-truncated tool-call content is misdiagnosed as kind=content-not-array; no s
#6945 p2 dsh scope/kernel p2, dsh, scope/kernel [Bug][compress] Manual compress lane has no size sharding/halving and no legacy fallback — one overs
#6939 p2 — scope/kernel p2, scope/kernel [Bug] When the original anchor is missing, the compressed summary shifts with new user messages, bre
#6900 p2 dsh scope/kernel p2, dsh, scope/kernel kernel: isFailedCompressResult misses Error: prefix so host-wrapped failed compress results stay
#6891 p2 zcode scope/wiring p2, zcode, scope/wiring [Bug][zcode] bili plugin install zcode writes bare node — MCP/hook never spawn when node is not
#6887 p2 — scope/kernel p2, scope/kernel [Bug] Google lane: fold splits a parallel functionCall batch — surviving unsigned sibling leads the
#6885 p2 omp scope/kernel p2, omp, scope/kernel [Bug][compress][externalSummary] Serial 25s/50s default budget makes long-payload chains fail 100%;
#6878 p2 pi scope/storage p2, pi, scope/storage [Bug][fork][pi] Fork child adopts part of the parent blocks but its tail still spans the ENTIRE hist
#6864 p2 opencode scope/wiring p2, opencode, scope/wiring [Bug] Using billion-context (launcher or native plugin) in OpenCode falsely triggers the Zen free ti
#6834 p2 — scope/storage p2, scope/storage Emergency-truncated display content is cached as complete compression originals
#6833 p2 dsh scope/wiring p2, dsh, scope/wiring Host nudges repeat complete standing rules and require redundant receipt verification
#6832 p2 codex scope/kernel p2, codex, scope/kernel Explicit content rejections enter compatibility recovery and can lose verdict or usage
#6829 p2 pi scope/wiring p2, pi, scope/wiring pi-web-access 0.46+ breaks the #2435 coexistence path, then the #1662 fallback sends inline-origin t
#6787 p2 — scope/storage p2, scope/storage Write side: the large JSON column in the sessions row is rewritten in its entirety on every save — o
#6782 p2 dsh scope/kernel p2, dsh, scope/kernel Every save requires a full read of the three ledger tables (refs/blocks/ccr) for final-state reconci
#6781 p2 dsh scope/kernel p2, dsh, scope/kernel After the model switch, that request round didn't get collapsed — the full 43 MB payload just blew s
#6780 p2 dsh scope/storage p2, dsh, scope/storage 0.1.214 moved the two slow-ingest calls per round ahead of forward POST, increasing TTFT from 2.
#6776 p2 claude scope/kernel p2, claude, scope/kernel [Proposal] incremental lane: compact cache retouches, Responses incremental input, retained 0.1.200
#6770 p2 dsh scope/kernel p2, dsh, scope/kernel [Diagnosis] Compression coverage reading for #3962 is unavailable on device: profileContext.startedB
#6767 p2 dsh scope/wiring p2, dsh, scope/wiring Issue Report | 问题报告
#6730 p2 dsh scope/kernel p2, dsh, scope/kernel The validation message for compress is self-contradictory: it reports "summary too short" yet sugg
#6720 p2 — scope/kernel p2, scope/kernel Every compression only trims a little: the post-fold floor ratchets up and a 1M-window session ends
#6653 p2 — scope/kernel p2, scope/kernel Compression conflict banner (bili v0.1.213, node v22.15.0, darwin-arm64)
#6647 p2 — scope/wiring p2, scope/wiring Independent models share 429 cooldown behind the Magpie aggregation gateway: Request configuration s
#6644 p2 — scope/wiring p2, scope/wiring [Bug][config] per-route providers.* edits (incl. proxy) stay inert until POST /__bili/config/reload,
#6632 p2 claude scope/kernel p2, claude, scope/kernel [Bug][claude] claude-fable-5-2: any fold breaks the session with 400 "Invalid signature in thinking
#6512 p2 — scope/storage p2, scope/storage Pi/Codex: additional_tools blocks fork snapshots; emergency summary streaming retry fails
#6511 p2 dsh scope/kernel p2, dsh, scope/kernel [Bug][dsh] unattributed silent-direct 8 MiB gate kills image-heavy sessions; recall net can never en
#6505 p2 codex scope/storage p2, codex, scope/storage [Bug][Codex launcher] Stale legacy PID reused by another process blocks per-session launches after #
#6457 p1 gemini scope/storage p1, gemini, scope/storage [bug] Antigravity/v1internal: requestType="checkpoint" verbatim passthrough crashes long sessions wi
#6440 p2 dsh scope/kernel p2, dsh, scope/kernel During tool execution in a long DSH chat session, auto-compression triggers false pauses and the res
#6433 p2 zcode scope/wiring p2, zcode, scope/wiring [Bug][zcode] ① bound shim sends sess_-prefixed session id that the proxy never resolves ("unknown
#6361 p2 claude scope/wiring p2, claude, scope/wiring [Bug][claude] After /clear (or /new), bili MCP stays bound to the pre-clear session ID — tools hit t
#6332 p3 — scope/kernel p3, scope/kernel Kernel authorization request: Ledger alignment only raises the time-attribute visibility watermark w
#6328 p2 — scope/kernel p2, scope/kernel Kernel authorization request: Line-form compress treats summary body lines starting with a ref pair
#6313 p2 — scope/wiring p2, scope/wiring The repository does not have private vulnerability reporting enabled, so the reporting endpoint prov
#6312 p2 pi scope/storage p2, pi, scope/storage [Bug][update-policy] After setting blocked / pinned, the installed candidate version may be high
#6311 p2 — scope/kernel p2, scope/kernel [Bug][blockOps] The receipts for acp_rewrite / acp_retire report success, but as long as the compres
#6310 p3 dsh scope/kernel p3, dsh, scope/kernel [Bug][dsh] A one-off request with no system prompt and no tools, when attached under the main sessio
#6308 p2 — scope/ci p2, scope/ci [updater] The target of an announcement only undergoes syntax validation: a single announcement en
#6307 p2 — scope/wiring p2, scope/wiring [Feature][config] Remote advisory monitor and models.dev prefetch lack an off switch: with autoUpdat
#6303 p2 dsh scope/kernel p2, dsh, scope/kernel dsh plugin: second no-tools request lane in the same session invalidates all fold blocks; compress
#6258 p2 — scope/kernel p2, scope/kernel [Bug][DSH/Codex] Full system prompt appended each step is concatenated into instructions; once total
#6254 p2 — scope/storage p2, scope/storage [Bug][storage] CPU profile of v0.1.213 slow-ingest: canonicalJson + serialize + canonicalDigest domi
#6122 p1 dsh scope/storage p1, dsh, scope/storage [Bug][dsh] DSH fork() omits parentSession, so the child silently inherits 1 of 33 compression blocks
#6105 p2 dsh scope/kernel p2, dsh, scope/kernel [Bug][dsh] "Compress NOW" directive span starts one message early, so following it verbatim is alway
#6057 p2 dsh scope/storage p2, dsh, scope/storage [Bug][dsh] reconcile-live-ids re-mints a live message's id but the message store never learns it — 8
#6011 p2 claude-code scope/kernel p2, claude-code, scope/kernel Claude Code sub-agents are getting a lot of cache misses, but the main session is fine. | Claudecod
#5977 p2 — scope/storage p2, scope/storage [Bug][compress] Non-monotonic references after rewind(fork+seed): folding granularity degrades to ~5
#5900 p2 dsh scope/kernel p2, dsh, scope/kernel [Bug][dsh] Assistant prose silently truncated: artifact filter swallows the rest of the stream on a
#5886 p2 dsh scope/storage p2, dsh, scope/storage [Bug][dsh] Per-turn system-prompt rotation forks a new |sub: lane every single turn → main lane sta
#5869 p2 dsh scope/wiring p2, dsh, scope/wiring 0.1.212 still reproduces the structural issue from #4528: single-request local preprocessing peaks a
#5834 p2 dsh scope/wiring p2, dsh, scope/wiring decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2
#5831 p2 — scope/wiring p2, scope/wiring decision request: upstream TTFB idle budget — split header/body phases, which shape?
#5824 p2 — scope/storage p2, scope/storage Expected performance after JSON-to-SQLite migration
#5817 p2 omp scope/kernel p2, omp, scope/kernel OMP compression tools resolve a different session from injected ACP ranges
#5793 p2 zcode scope/kernel p2, zcode, scope/kernel [Bug][acp] Title-generation side call pollutes fold ref state → permanent fold-reconcile drift disab
#5792 p2 dsh scope/storage p2, dsh, scope/storage [perf][dsh] 25.8-32.7 s of each step elapses before bili sees the body (bili itself: 5.5-7.2 s) | T
#5595 p1 dsh scope/storage p1, dsh, scope/storage Fork adoption fails on multimodal parents, then degrades into a raw-history rebuild that the provide
#5455 p2 — scope/kernel p2, scope/kernel kernel: distinguish answered compress orphans from genuinely pending calls
#5430 p2 claude scope/ci p2, claude, scope/ci (ai: anthropic/claude-opus-4-6) The one-click release emergency switch skip_ci_gate does not take
#5249 p1 gemini scope/kernel p1, gemini, scope/kernel Context compression drops uncommitted goal/task states, leading to infinite continuation loops 上下文压缩
#5201 p2 dsh scope/ui p2, dsh, scope/ui Web panel shows Failed to fetch on DSH Desktop: proxy rejects the dsh-desktop: origin (403)

p1 (6) — 强信号命中,请抽查

p1 (6) — 强信号命中,请抽查

p3 (2) — 文档/低频/UX 信号

p3 (2) — 文档/低频/UX 信号

p2 待 owner 复核 (71) — 无强 p1/p3 信号,默认 p2

p2 待 owner 复核 (71) — 无强 p1/p3 信号,默认 p2

行为变更

无 —— 一次性维护工具,无运行时代码、无配置面、无 wire 变更;issue 标签为元数据,只增不删。

验证

  • 真实运行前 8 轮 dry-run,79 行逐行对照真实 issue 正文复核(修掉了 bug 报告模板段、fenced 日志引用、kernel/ 文件路径等误伤)
  • 真实运行: 79/79 打标签成功, 0 错误
  • 第二遍: 0 变更(幂等)
  • 验收: open 且缺 p = 32,全部为 §5 排除的 [根因] 聚合类 → 范围内 0

scripts/triage-label-backfill.mjs labels every open issue missing a
p1/p2/p3 priority label (reference/triage.md §1-3): priority is
title-anchored and conservative (p1 only on strong signals, uncertain
→ p2 + owner-review list), host lane only for a single clearly-
involved host, one scope/* label. Add-only, never renames/closes/
edits, skips [根因] aggregation issues, rate-limit resilient,
--dry-run supported. Second run is a no-op.
@ranxianglei ranxianglei added enhancement New feature or request p3 labels Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-11-18_triage-label-backfill (60cdca5)

Latest build — install this exact version

npm install -g billion-context@0.0.10714-pr.7110.440e404

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
60cdca5 billion-context@0.0.10714-pr.7110.440e404 build

Download artifact

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

Install instructions are refreshed on each push.

@ranxianglei ranxianglei changed the title feat: idempotent triage-label backfill script + backfill run report | 幂等 triage 标签补打脚本与补打报告 [PR] feat: idempotent triage-label backfill script + backfill run report | 幂等 triage 标签补打脚本与补打报告 Nov 18, 2026
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b)

查重: 不重复 — open PR 中只有本 PR 做标签补打(另一条 #6815 是 post-compress tail 修复,无关);源 issue #7059 即本 PR 对应的唯一补打工单。

PR 标签状态: enhancement + p3 + root-cause 已在,满足最低标准(类别 + 优先级);root-cause 是本仓 PR 既有惯例(169 个 PR 在用),非误继承。无需改动。

结构化八问

  1. 是什么问题: 2026-11-12「source issue 不许 relabel」硬规则被 worker 误读成「接单不打标签」,新 issue 带标签率从 30/40 掉到 15/40;2026-11-17 规则细化(接单必须打标签、只禁改标题/关单/改正文)修好了行为,但存量漏打仍在。本 PR 交付幂等补打脚本 + 报告已完成的一次全量补打(79 个 issue)。
  2. 什么原因导致的: 根因是 worker 对规则的误读(行为/流程问题,非代码缺陷);规则细化后剩下的缺口是一次性存量回填 —— 本 PR 就是这个回填工具与执行报告。
  3. 影响范围与严重程度: 只动 issue 元数据(标签),无用户面、无运行时影响;严重度 = 仅内部实现,无外部影响。补打面 = 79 个缺 p 的 open issue,只增不删。
  4. 怎么修复的: 新增 scripts/triage-label-backfill.mjs(372 行,纯 node 内置 fetch,零新依赖)。判定口径按 reference/triage.md: p1 仅标题强信号(崩溃/数据损坏/不可用/缓存泄露类),拿不准一律 p2 并进复核清单、不猜 p1;feature 固定 p2;车道仅当恰好单一宿主;scope 标题宽规则 → 正文严规则(正文先剥 fenced code block,引用日志里的子系统词是证据不是领域)。红线在代码里强制: 只走 POST /issues/{n}/labels 追加、不 rename/不 close/不改正文、跳过 [根因] 聚合类、POST 后校验响应含全部请求标签否则抛错;403/429 睡到 X-RateLimit-Reset 重试(≤24 窗口);支持 --dry-run。
  5. 是否有回归问题: 审过的既有行为 —— diff 只新增一个文件,未触碰任何既有文件,运行时/wire/配置/持久化/kernel 零影响;标签写入为元数据且只增不删,我独立抽查 3 个(Scheduled full test failed: 0e475ceb | 定时全量测试失败: 0e475ceb #7108 → p2+scope/other ✓、DSH: uninstalling billion-context permanently bricks existing long sessions — no downgrade path from bili-only history #6972 → p1+dsh+scope/storage ✓、[Bug][dsh] A one-off request with no system prompt and no tools, when attached under the main session ID, goes through t | [Bug][dsh] 没有 system、没有工具的一次性请求挂在主会话 id 下会走主管线:被注入 ACP 标签、占掉 ref、它的用量被记成主会话的上下文大小 #6310 → p3+dsh+scope/kernel ✓)确认标签真实落上;高危模式(语义漂移、fail-fast 变吞错、阈值/时序/输出格式漂移)均不涉及。
  6. 是否破坏缓存: 不涉及(无缓存/重试/增量游标/去重键)。
  7. 是否改了设计方向: 不涉及(一次性维护工具,无架构/边界/数据流转向)。
  8. 是否引入了新的配置: 不涉及(无新 env/config/默认值;GITHUB_TOKEN 走既有凭据通道,非新配置面)。

独立复核(不照抄 PR 描述)

CI 与合并判定

CI: 0 失败;13 项已完成(12 条 e2e 车道按文件触发规则正确 skipped + gate 绿),17 项 test/static-gates 分片仍在排队(合并窗 diff 只加 scripts/,不触 src/,预期全绿)。mergeable=true 无冲突,blocked 仅为必需检查未跑完。

结论: 代码与行为审查通过,无阻塞问题;等 CI 跑完即绿,可合(合并动作归 owner)。

This branch has not been deployed

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

Labels

enhancement New feature or request p3 root-cause

Projects

None yet

1 participant