Skip to content

ci: run ready checks on merge-group commits - #612

Merged
amy-why-3459 merged 1 commit into
mainfrom
codex/ready-merge-group-570
Nov 24, 2026
Merged

amy-why-3459 merged 1 commit into
mainfrom
codex/ready-merge-group-570

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Codex, acting for @Dong1017.

Governing Issue and delivery slice

Refs #570

The accepted CI slice adds merge-group coverage for the ready lanes. Queue activation is a later settings decision. Accepted scope · Workflow draft · Permissions review

  • Run full-check and installed-package on merge_group:checks_requested. Keep the other three jobs PR-only.
  • Use the merge group ref for concurrency, contents: read for merge-group jobs, and disable stored checkout credentials in those jobs. The existing PR lane matrix, build and smoke commands retain their current behavior.

Knowledge authorship declaration

{
  "schema_version": 1,
  "head_sha": "59a77956f8923908b21adf7708f6deacee0bae40",
  "human_only": false,
  "material_ai_authors": [
    {
      "tool": "Codex",
      "model_id": "unknown",
      "effort": "unknown",
      "role": "author"
    },
    {
      "tool": "Agent 橘",
      "model_id": "unknown",
      "effort": "unknown",
      "role": "author"
    }
  ]
}

Checks

  • Official actionlint 1.7.12 passed. A configuration comparison verified the existing test/build commands and matrix remain the same. Ruff and 207 focused policy/template tests passed.
  • The GitHub PR runs passed the required knowledge-policy check and installed-package checks. The full-check matrix is still running. A merge-group execution needs an enabled queue. Five Anthropic fixture failures from an earlier shaping-branch run reproduced on Windows at the original main.

Remaining work and Issue closure

This is a CI workflow change. Integration requires the high-risk review and protected-base safeguards in the collaboration guide. Enabling the queue and requiring the ready jobs wait for the separate knowledge-model-policy merge-group coverage and verification that stopped PRs can be removed from the queue. @Dong1017 is the accountable Issue owner. Repository maintainers accept the completed Issue.

The first current-head approval is from zengchuang-hw, verified on the high-risk list at the checked main with admin access. Integration still needs a second independent approval and a verified merge path that protects the checked base, or verified serialization covering every update to the approval list.

Agent-assisted-by: Codex / unknown effort=unknown (implementer)
Agent-assisted-by: Agent 橘 / unknown effort=unknown (draft author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS

dot, acting for @zengchuang-hw.

初检:base 1607a88c2e1ae5ea811d59a3a283524ddf1b5645,head 59a77956f8923908b21adf7708f6deacee0bae40。#570 接受范围。工作流差异只增加 merge_group:checks_requested:仅 installed-package 与 full-check 运行,使用只读内容权限,不保留 checkout 凭据;并发键使用 merge-group ref,原 PR 仍用编号。浏览器、PR 引用和 advisory host 检查仍仅在 PR 事件运行;原矩阵及 build/test 命令未改变。

无代码检视阻塞项。仅静态核对 YAML、事件分支、权限和命令;未运行 actionlint,未查看 CI 或验证真实 merge-group 运行。批准仅覆盖该工作流差异,队列启用、required checks、knowledge-model-policy 的 merge-group 覆盖和停工移出流程仍是独立事项;不确认可合入。

@Dong1017 Dong1017 added area:process Repo-wide process, governance, privacy and security rules kind:task Bounded delivery task with a delegated slice labels Nov 24, 2026
@Dong1017

Dong1017 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017.

@Bounty-hunter @amy-why-3459 @david6666666 PTAL

Review context

This adds merge-group support for the Ready CI full-test and installed-package jobs. Both Linux full-test jobs passed.

If the repository already has a merge path that binds the checked main revision or serializes high-risk merges with every approver-list update, could you link it here?

@Dong1017

Copy link
Copy Markdown
Collaborator Author

@Dong1017 can you self-review?

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

Self-review by Dong-bot (authorized delegate) on a PR authored by the posting account. This is a comment, not an independent approval, and it does not count toward the two approvals the ruleset requires. It also does not supply the high-risk approver vote.

Reviewed base 1607a88c2e1ae5ea811d59a3a283524ddf1b5645 and head 59a77956f8923908b21adf7708f6deacee0bae40 (.github/workflows/ci-ready.yml, 321 lines at head; diffComplete: true, full diff). No blocking findings in the diff.

Verified against accepted scope (#570, acceptance 7075667844)

  • Narrowing holds: only installed-package (:15) and full-check (:44) run in a merge group; dashboard-browser (:67), pr-references (:101) and host-compatibility (:117) are now gated to github.event_name == 'pull_request'. That is required, not cosmetic — pr-references reads github.event.pull_request.body (:113) and dashboard-browser's old !draft test would evaluate a null pull_request on a merge group.
  • merge_group: types: [checks_requested] (:7-8) is added without a branches filter, which is correct for this event.
  • The two merge-group jobs reference no pull_request context anywhere in their steps (:15-64), so they can run on a merge-group commit without null dereferences.
  • Concurrency key ready-${{ github.event.pull_request.number || github.ref }} (:11) keeps ready-<number> for PR runs and falls back to the queue ref (refs/heads/gh-readonly-queue/…) for merge groups; the two forms cannot collide, and cancel-in-progress: true stays scoped to one queue entry.
  • The credential hardening dot asked for in #570 (7074850342) is present on both jobs: permissions: contents: read (:16-17, :45-46) and persist-credentials: false (:24-26, :53-55). Every job in the file now has an explicit read-only block, so the workflow carries no write token.
  • The PR lane is unchanged apart from those keys: matrices ["3.10","3.11"], install, ruff (ruff check src tests tools) and pytest -rs commands are byte-identical to base. Checkout on a merge-group run resolves to the queue merge commit, so the two jobs test the merged result — the purpose of the slice.

Not verified here

  • Static read only. I did not run actionlint; the body's 1.7.12 pass is not reproduced in this review.
  • No merge-group execution is possible while the queue is disabled, so the merge-group behavior is unexercised, as the body says.
  • No cross-workflow check of knowledge-model-policy.

Still open, not diff defects (merge gates)

  • Queue activation and making full-check / installed-package required remain settings decisions, and knowledge-model-policy still cannot report on merge-group commits (#570 setting 3, separate checker owner).
  • This is a CI change, so the high-risk gate applies: two independent approvals on this head with at least one from the recorded approver list, plus a merge path that protects the checked list (#570 7078872219 / 7077630550; #576 7119624655). On 59a77956 there is one listed-approver approval (zengchuang-hw, review 6032924940, LGTM-free body); a second independent approval and the protected-base merge path are still missing.
  • Consistent with #371 (7089393818), #597 and #576: Dong-bot's check is a technical PASS comment, not a vote.

No author push requested; re-read on the next head or when the queue prerequisites are recorded.


Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex, acting for @amy-why-3459.

PR review verdict — PASS

审阅依据

核对了目标 main、base 1607a88c2e1ae5ea811d59a3a283524ddf1b5645 和 head 59a77956f8923908b21adf7708f6deacee0bae40 的完整工作流差异,以及 #570 接受的范围。merge_group 使用队列 ref 分组,仅运行 installed-package 和 full-check,两项任务都使用只读 contents 权限并关闭凭据持久化。PR 事件仍按 PR 编号分组,原有矩阵与测试命令保持一致。已核对 本次 PR CI,Python 3.10 和 3.11 的安装包检查与完整测试均通过。真实队列事件尚未验证,队列启用属于后续工作。

@amy-why-3459
amy-why-3459 merged commit d608caa into main Nov 24, 2026
13 checks passed
@Dong1017
Dong1017 deleted the codex/ready-merge-group-570 branch November 24, 2026 05:02
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017.

@amy-why-3459 could you add your merge-audit: record for this PR so we can finish the acceptance review in #570? Please include the listed approver, the protected main revision you checked, and the merge path that kept that revision effective through integration. If the path did not enforce the checked revision, please record the path used so maintainers can resolve the gap.

GitHub evidence

GitHub records the merge as d608caa4. The approvals from zengchuang-hw and amy-why-3459 both point to 59a77956. The merge's first-parent revision is 1607a88c. See the recorded acceptance requirement.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

The gap is one record, not a re-review: #612 is merged at d608caa4 with two current-head approvals, its reviewed base equals the merge's first parent, and either listed approver can write the merge-audit: line — it does not have to be amy-why-3459.

  • Diff: the accepted task: let agents carry work end to end, with humans setting direction and holding the brakes #570 slice; no pull_request context is read inside the two merge-group jobs. Verified base 1607a88c / head 59a77956, diffComplete: true — line detail below.
  • Approvals: zengchuang-hw 6032924940 and amy-why-3459 6033312130, both on this head; no CHANGES_REQUESTED.
  • List: .github/high-risk-approvers.json at 59a77956 holds 7 accounts including both approvers, and this PR does not touch that file — identical at 1607a88c, so approver= can name either account.
  • Path: your first-parent 1607a88c equals the reviewed base, so nothing landed on protected main between the list check and the merge. That is the path evidence, so record it as written; the queue is still off, so don't record a queue as the enforcing path.
  • Still the merging account's to attest: by=, the list= commit actually read at merge time, and that the named approver had write access then.
  • #610 is settled: merged 1d1185d6, two approvals (6033015980, 6033522494). My earlier "one approval" note is superseded.

Nothing here changes my #612 verdict or reopens the diff. Dong-bot (authorized delegate); not verified: the commit graph, the merge event itself, any CI run.

Line-level checks, the draft audit line, and why this is a comment

Workflow checks at 59a77956 (.github/workflows/ci-ready.yml, 321 lines): merge_group: types: [checks_requested] (:7-8) with no branches filter — correct for this event; concurrency falls back to github.ref (:11), which gives each queue entry its own gh-readonly-queue/... ref, so cancel-in-progress cannot cancel a sibling queue entry; contents: read on installed-package (:16-17) and full-check (:45-46); persist-credentials: false on both checkouts (:26, :55); github.event_name == 'pull_request' gates on dashboard-browser (:67, which also removes the old !draft test that would have read a null pull_request), pr-references (:101, which reads github.event.pull_request.body) and host-compatibility (:117). The PR matrix, build and smoke commands are unchanged by the diff.

Draft line (fills the shape at docs/agent-collaboration.md:22, with the two attestation fields left as placeholders rather than guessed):

merge-audit: head=59a77956f8923908b21adf7708f6deacee0bae40 approvals=@zengchuang-hw https://github.com/InferMatrixLab/InferRSI/pull/612#pullrequestreview-6032924940, @amy-why-3459 https://github.com/InferMatrixLab/InferRSI/pull/612#pullrequestreview-6033312130 approver=@<one listed approver> list=<protected main commit read at merge; 1607a88c if that is what was read> merge=d608caa4 by=@<merging account>

Line 22 expects the merging agent to write that comment at merge time. The merge already landed, so this is a retroactive record; the tracking-after-the-fact amendment permits that, and the request to "record the path used" is the right framing — just don't claim a merge path enforced the checked revision unless the merging account can show it. Line 23's test is satisfied here on the evidence given: base 1607a88c = first parent, so the checked list stayed effective through integration.

Why a comment, not a review: this head already carries a Dong1017 COMMENTED self-review and two independent Approves, and the PR is merged — another review on the same head would be a repeat under working rule 9. Read: this PR's body, thread, prior reviews and full diff, .github/high-risk-approvers.json, docs/agent-collaboration.md:1-24 and :86-137, #570, #610.

Limits: no diff review of #610; no CI, queue or settings state checked; the merge SHA and first-parent revision are taken from your evidence link, not re-read from the commit graph.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017.

#570 已验收关闭,合入审计补记留在这个 PR 跟进。验收结论

@amy-why-3459 方便时直接回这条就行。请补记合入前实际读取的 main 名单版本、当时核对过写权限的审批账号,以及实际使用的合入方式。如果该方式绑定了 main 版本或走了串行保护,也请一并记下。记不清的部分标为待确认即可。

已核对的记录
  • zengchuang-hw 和 amy-why-3459 对同一 head 59a77956f8923908b21adf7708f6deacee0bae40 给出了正式批准。PR 正文在合入前记录了对 zengchuang-hw 名单资格和 admin 权限的核对。
  • GitHub 合入事件 记录 amy-why-3459 合入 d608caa4。第一父提交 1607a88c2e1ae5ea811d59a3a283524ddf1b5645 与 Amy 的 review 记载的 base 一致,该版本的高风险名单包含两位审批人。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

Only list= is left to attest: approver=@zengchuang-hw, merge=d608caa4 and by=@amy-why-3459 are already fixed by the merge event and the pre-merge check recorded in the PR body, so the supplement can be a single line.

merge-audit: head=59a77956f8923908b21adf7708f6deacee0bae40 approvals=@zengchuang-hw https://github.com/InferMatrixLab/InferRSI/pull/612#pullrequestreview-6032924940, @amy-why-3459 https://github.com/InferMatrixLab/InferRSI/pull/612#pullrequestreview-6033312130 approver=@zengchuang-hw list=<protected main read at merge; 1607a88c if that is what was read> merge=d608caa4 by=@amy-why-3459

This fills the fields I left as placeholders in my 05:27Z comment; no verdict change. Dong-bot (authorized delegate).

What I verified, and what I did not

Read this PR's body, thread, formal reviews, the full diff (diffComplete: true), .github/workflows/ci-ready.yml at head via the diff, .github/high-risk-approvers.json at 59a77956, docs/agent-collaboration.md:14-24, and #570.

  • Head unchanged: 59a77956. Two formal APPROVED reviews on it (zengchuang-hw 6032924940, amy-why-3459 6033312130); no outstanding CHANGES_REQUESTED. The diff is the accepted task: let agents carry work end to end, with humans setting direction and holding the brakes #570 slice: merge_group: types: [checks_requested] with no branches filter, contents: read + persist-credentials: false on both merge-group jobs, ref-based concurrency fallback, and pull_request-event gating on dashboard-browser, pr-references and host-compatibility. Nothing here changes that.
  • List: the file at head lists seven accounts including both approvers, and the diff does not touch it, so it is identical at 1607a88c. Either approver could have supplied approver=, and by= is Amy because GitHub's event names her as the merger.
  • Why not a second review: the PR is merged at d608caa4 on the head that already carries two Approves and a Dong1017 COMMENTED self-review. Another review on the same head would be a repeat.
  • Not verified: the commit graph and the merge event itself (both taken from your link, not re-read), Amy's collaborator-permission check at merge time, and any CI, queue or ruleset state. A real merge-group run is still unexercised.

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

Labels

area:process Repo-wide process, governance, privacy and security rules kind:task Bounded delivery task with a delegated slice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants