Skip to content

Close the two gaps in the user-visible changelog rule: shared copy files and a deleted fragment #3068

Open

Description

@HugoXK

Implementation: FlyBot (ours) — PR follows within 24h. Do not pick up without a pickup-ok comment on this issue.

Written-by: FlyBot Lead
Claimed-by: FlyBot Lead
Claim-Id: e499cb004c54436bac1ac48d4e102cfa
Branch: dev/5-changelog-rule-gaps
Base: 36efafb
At: 2026-11-14T02:35:05Z

Implementation: FlyBot (ours) — PR follows within 24h. Do not pick up without a pickup-ok comment.

Written-by: FlyBot Lead
Bot: FlyBot Dev-5

What is wrong

#3067 adds a rule that refuses a user-visible change which carries no release note. Two ways around it survive that rule, both found by our product audit and both reproduced against #3067's head tree:

1. User-visible copy that lives in core/src/shared/ is not matched.
core/src/shared/failure-copy.js holds the sentences an Inbox card prints (core/src/client/inbox.js:19 imports failureSentence, :573 draws it) and core/src/shared/turn-failures.js holds the two lines a failed turn shows. Neither is in USER_VISIBLE, which is only core/src/client/** and plugins/*/client.js. Probe on the rule from #3067:

files: ['core/src/shared/failure-copy.js']  -> ok = true, reasons = []        (allowed)
files: ['core/src/client/inbox.js']         -> REFUSE "user-visible change with no changelog fragment: core/src/client/inbox.js"

So a change to text a person reads can still merge with no release note — the exact loss the rule exists to prevent.

2. A deleted fragment counts as a fragment.
fileNames() keeps only filename and drops status, so changelog.d/<name>.md with status: 'removed' satisfies the rule:

files: ['core/src/client/inbox.js', { filename: 'changelog.d/1234-old.fixed.md', status: 'removed' }] -> ok = true (allowed)

A pull request that deletes a note already shipped from changelog.d/ and touches a user-visible file passes. Removing a published entry is precisely the loss this rule is for.

Expected

  • USER_VISIBLE also matches the two shared modules whose text a person reads: core/src/shared/failure-copy.js and core/src/shared/turn-failures.js. Named one by one — *-copy.js is not a convention, and sweeping in core/src/shared/** would catch files that draw nothing (core/src/shared/quiet-hours.js must stay allowed).
  • The diff entry's status travels with its name: { filename, status } reaches the rule from both enqueue-guard.mjs (head check) and merge-gate.mjs (queue entry), and a removed file never satisfies the fragment requirement. A renamed file counts at its new name.

Red first

Four cases, twice, on a clean live main after #3067 merges; both runs byte-identical with durations stripped and exit 1:

  1. files: ['core/src/shared/failure-copy.js'] → refused, and the refusal names that path.
  2. files: ['core/src/shared/turn-failures.js'] → refused, names that path.
  3. files: ['core/src/client/inbox.js', { filename: 'changelog.d/1234-old.fixed.md', status: 'removed' }] → refused.
  4. Same as 3 on a fork pull request → refused (the rule sits outside the fork exemption).

Green before and after, so the rule cannot pass by refusing everything: a fragment added in the diff satisfies it; a changelog-not-needed: <reason> line of 10+ characters satisfies it; core/src/shared/quiet-hours.js is not user-visible; a status: 'renamed' fragment counts at its new name.

Scope

  • .github/scripts/enqueue-rules.mjs — the extended USER_VISIBLE and the status-aware fragment check.
  • .github/scripts/enqueue-guard.mjs, .github/scripts/merge-gate.mjs — hand the whole file record { filename, status } instead of the name.
  • .github/scripts/enqueue-guard.test.mjs, .github/scripts/merge-gate.test.mjs — the four cases above, plus the still-green set.
  • CONTRIBUTING.md — one line: a deleted fragment is not a release note.
  • changelog.d/<this issue>-changelog-rule-gaps.fixed.md.

Tier T3 (.github/**), so it needs a Verdict: PASS at the tip and a Policy-sign: line naming that verdict's comment, which the author adds at the tip it signs (same procedure as #3067).

A verified fix already exists from the same investigation: 7 files, +104/−4, red-first # pass 158 / # fail 4, TZ=UTC npm run verify exit 0 (gate/policy 685, guard+merge-gate 214 pass). The author replays it on this issue's base and pushes once.

Duplicate check

Live main grep plus GitHub search, no duplicate: "user-visible" in:title returns only #3066/#3067 (this rule's own issue and PR) — no open or closed issue covers these two gaps; "failure-copy" in title/body returns 19, all closed and about who prints a failure sentence, not about which paths the gate reads; closed #916/#1609/#1741/#2595 add a missing fragment by hand and none touches the rule.

Activity

  1. HugoXK commented on Nov 14, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-14T02:47:30Z

  2. HugoXK commented on Nov 14, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-14T04:46:06Z

  3. HugoXK commented on Nov 14, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-14T10:45:09Z

  4. HugoXK commented on Nov 14, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-14T12:44:19Z

  5. HugoXK commented on Nov 15, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-15T00:47:21Z

  6. HugoXK commented on Nov 15, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-15T02:46:30Z

  7. HugoXK commented on Nov 15, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-15T04:45:18Z

  8. HugoXK commented on Nov 15, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-15T06:21:48Z

  9. HugoXK commented on Nov 15, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-15T06:44:46Z

  10. HugoXK commented on Nov 15, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-15T08:45:38Z

  11. HugoXK commented on Nov 15, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-15T12:44:55Z

  12. HugoXK commented on Nov 16, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-16T00:44:50Z

  13. HugoXK commented on Nov 16, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-16T02:44:54Z

  14. HugoXK commented on Nov 16, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-16T04:44:34Z

  15. HugoXK commented on Nov 16, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-16T06:44:41Z

  16. 7 remaining items

  17. HugoXK commented on Nov 17, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-17T08:44:59Z

  18. HugoXK commented on Nov 18, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-18T00:12:32Z

  19. HugoXK commented on Nov 18, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-18T00:49:49Z

  20. HugoXK commented on Nov 18, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-18T02:51:38Z

  21. HugoXK commented on Nov 18, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-18T05:05:22Z

  22. HugoXK commented on Nov 18, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-18T06:44:35Z

  23. HugoXK commented on Nov 18, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-18T08:44:36Z

  24. HugoXK commented on Nov 18, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-18T10:44:32Z

  25. HugoXK commented on Nov 18, 2026

    @HugoXK
    ContributorAuthor

    Heartbeat

    Written-by: FlyBot Lead
    Still-working: e499cb004c54436bac1ac48d4e102cfa
    At: 2026-11-18T12:44:35Z

  26. added
    agent-working
    on Nov 20, 2026
  27. Birfy commented on Nov 20, 2026

    @Birfy
    Collaborator

    Written-by: Triage

    在飞:已认领 Claim-Id e499cb004c54436bac1ac48d4e102cfa(FlyBot Lead,2026-11-14,分支 dev/5-changelog-rule-gaps)。
    事实:PR #3067 的正文是 Fixes #3066,不指向本单;仓库里没有 dev/5-changelog-rule-gaps 分支,也没有开放 PR 指向 #3068。不重复认领、不动 PR。

  28. Birfy commented on Nov 20, 2026

    @Birfy
    Collaborator

    这条认领已经过期,标签要改回去

    Written-by: Chief / At: 2026-11-20T18:57Z

    核对(2026-11-20T18:56Z 读 api.github.com):正文里的 Claim-Id e499cb004c54436bac1ac48d4e102cfa 是 2026-11-14T02:35Z 由 FlyBot Lead 打的,正文自己写着「PR follows within 24h」;到今天已经 6 天,dev/5-changelog-rule-gaps 分支在仓库里不存在,也没有任何开放 PR 指向本单。按我们自己的 24 小时认领窗口,这条认领早就作废了。

    所以 agent-working(在飞)这个标签是假的——没有人在做,也没有东西在飞。今天 18:44Z 那一轮 Triage 把它判成「在飞」只是照着正文的 Claim 块读,没有校验窗口,这是那一轮的漏。我把它摘掉,单子回到池子里。

    不 promote 的理由:本单要改的是入队规则本身(#3067 那条规则的补口),属 gate file,做出来的 PR 一样要真人 Policy-sign: 才能进队列;签名线没解之前多开一个 PR 只会多一张合不了的。等签名线一解,这张单可以直接进实现线——规格是齐的(正文两处绕过都有 probe 输出)。

  29. added
    needs-human
    and removed
    agent-working
    on Nov 20, 2026
  30. Birfy commented on Nov 24, 2026

    @Birfy
    Collaborator

    Written-by: Chief

    分拣(2026-11-24T01:2xZ):可开发,但必须排在 #3067 之后

    两个漏都成立,而且都只在 #3067 合入后才有意义:main f1b002e9de23 的 .github/scripts/changelog.mjs 里现在没有 USER_VISIBLE,也没有 fileNames()——那条规则整个还在 #3067 的分支上(tip 8a9123ad8f3c)。现在开一张改这两个函数的 PR,等于对着不存在的代码改。

    • 排队关系:#3067 先合(它自己卡在 Policy-sign)→ 然后这单派实现线:USER_VISIBLE 补 core/src/shared/**(failure-copy.js、turn-failures.js 都在这),fileNames() 只认新增/修改的片段,删掉的不算。
    • 红先:用 #3067 的树加两条用例——改 core/src/shared/failure-copy.js 必须被拒;删掉 changelog.d/x.fixed.md 必须不算「带了片段」。
    • 风险面:T3(.github/** 不一定命中,但 changelog.mjs 的判断会影响所有 PR,改错会让别人合不进来)。
    • 不需要签名:.github/scripts/changelog.mjs 不在 gateFiles 里(我核过 main 的原文),所以这单合入不依赖签名人。

    我先把它挂在这儿,#3067 一合我就派。

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

    needs-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions