Repository navigation
[PR] fix(notices): gate announcement records on the live conflict scan via requiresScan (#6508) - #6509
Merged
Conversation
… requiresScan (#6508) The dsh-live-compact-conflict entry in announcements/remote.json broadcast to EVERY instance: NoticeRecord gates (versions/percent/time window/dismiss) carry no client dimension, so the banner showed even on machines where the plugin is not installed — contradicting the conflict scan's 'flag only when found' semantics (#5984). Add optional requiresScan: { client, knownId? } to the record schema (validated by the shared validateRecord, counted in contentHash16): when set, noticePassesGates keeps the record hidden unless that client's read-only plugin-registry scan actually reports the plugin (any finding, or a matching knownId). Empty registries scan empty, so the gate fails closed and can never force user action. Scan results are cached per client+cwd for 5 min, keeping hot poll paths cheap. - remote.json: the #5984 entry now gates on dsh + dsh-live-compact - docs: configuration (en/ja/zh) + KDD #16 record the field - tests/remote-announcements.test.ts: gate behavior (hidden→shown→ knownId mismatch→any-finding), validation matrix, remote-lane end-to-end, shipped-feed validation — hermetic DSH_HOME fixture, scan cache cleared per case
Contributor
📦 Built Package ArtifactBranch: Latest build — install this exact versionnpm install -g billion-context@0.0.9505-pr.6509.bae4ae9This exact version is immutable and reproducible. The rolling Recent builds (commit → version)
Download artifact
tar xzf billion-context-pr6509.tgz
npm install -g packageInstall instructions are refreshed on each push. |
…enerates it The fix commit hand-edited the generated docs/configuration*.md tables; docs-sync regenerates them from website/config-reference/*.yaml and reverts the sentence, failing git diff --exit-code. Seed the same en/zh/ja text in updates.yaml so the generator emits it verbatim.
…eed (#6508) The entry's audience was "dsh profiles with the plugin", but until every running instance upgrades to a build that understands requiresScan, old versions show it unconditionally — the gate cannot reach them. Empty the feed now (watcher picks it up within ~3 minutes of merge); the conflict scan (dsh lane, knownId dsh-live-compact) remains the live surfacing mechanism. The requiresScan mechanism stays in code so the announcement can be re-added once the gated build is deployed, without re-reviewing the gate itself.
Owner
Author
|
跟进(e1292c42c):按用户裁定,本 PR 同时撤掉广播—— |
Contributor
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.1185-master.2b37ae3 # this exact build
npm install -g billion-context@master # always the newest merged build
|
This was referenced Nov 13, 2026
Louie0806
pushed a commit
to Louie0806/billion-context
that referenced
this pull request
Nov 13, 2026
…nfirmation, blast-radius PRs, plugin notices trigger-only (ranxianglei#6508) Owner ruling 2026-11-13, after the dsh-live-compact record (ranxianglei#5984) shipped as an ungated remote-feed broadcast and had to be retracted (ranxianglei#6508/ranxianglei#6509): 1. strict prohibition on announcements visible to every machine unconditionally 2. explicit owner confirmation before ANY announcement PR (add/change/retract) 3. announcement PRs must state the blast radius: audience, version coverage (incl. which older versions ignore new gate fields), and display duration 4. plugin-targeted announcements disallowed in principle — plugin conflict surfacing belongs to the read-only conflict scan (ranxianglei#1206); a plugin-targeted notice must be trigger-based (scan surfaces, or a requiresScan-gated record) AGENTS.md: new MANDATORY table row + 'Remote Announcements' section in §4; reference/design-decisions.md: KDD ranxianglei#19 with the full ruling and precedent.
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这是啥问题
announcements/remote.json里的 dsh-live-compact 冲突公告(#5984 的广播)对每台机器都显示——公告记录 schema 没有客户端/扫描结果维度的门,没装插件的机器也被横幅打扰。用户裁定:扫描到才可以显示,否则不要显示;并且(11-13 15:35)广播现在就要撤下来。改了什么
NoticeRecord新增可选字段requiresScan: { client, knownId? }(src/announcements.ts):validateRecord统一校验(client 限 SCAN_CLIENTS 已知集,knownId 可选非空 ≤80),并计入contentHash16(CANON_ORDER)noticePassesGates新增扫描门:设置了requiresScan的记录,只有该客户端的只读插件注册表扫描确实报告对应插件(任一发现或 knownId 精确匹配)才可见;注册表为空/不匹配 = 隐藏(fails closed)。扫描结果按 client+cwd 缓存 5 min,轮询热路径不重复 IOannouncements/remote.json的entries清空——门只对认识该字段的新版本生效,未升级的旧版本仍会无条件显示;要现在就让所有机器闭嘴,只能撤条目。合并后 feed watcher(~3 min)即生效,横幅在全版本消失。冲突扫描(dsh 车道,knownIddsh-live-compact)保持为唯一的实时暴露机制;机制留在代码里,日后新版本铺开后可直接重新加回该条目,无需再 review 门本身验证(本地全绿)
tsc --noEmitcleantests/remote-announcements.test.ts13/13(新增 4 个:gate 行为 hidden→shown→knownId 不匹配→any-finding;校验矩阵;remote 车道端到端「feed 送达但无插件 → 无横幅,装插件 → 出现」;master 已发布 remote.json 校验,含"已撤条目不得回到 feed"断言)scripts/validate-remote-announcements.tsOK(0 entries valid);config-surface-guardOK;gen-config-docs check-coverageOK;lifecycle-ledger-guardOK;check-architecture-docsOK真机核对:用户 ~/.dsh/profiles 下 13 个 profile 均未安装 dsh-live-compact → 撤条目后所有版本横幅消失;扫描机制不受影响,装了插件的机器照常收到 CLI WARNING / 会话台账 / acp_status 提醒。
Closes #6508(关联分析:#5984)