Skip to content

ci(gate): adopt the unified risk gate and sync the label rule - #35

Merged
Pigbibi merged 9 commits into
mainfrom
ci/unify-risk-gate
Nov 4, 2026
Merged

Pigbibi merged 9 commits into
mainfrom
ci/unify-risk-gate

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

AI assistance

Produced by an AI coding agent. The owner gave one-time authorization to use owner-approved on this batch of governance PRs; an agent applied that label, so it does not mean the owner reviewed this change line by line.

What changed

  • Replace .github/workflows/risk-gate.yml with the consolidated version from Pigbibi/12345HotlineBots main (8c0c703): Dependabot exemptions require the authenticated account, deleting any run/uses step line is high risk, and base drift is checked through git ancestry.
  • Sync the label rule in AGENTS.md: owner-approved means the owner confirmed the change, agent-approved means an agent cleared it, agents must not add the former, and owner-approved wins when both are present.

The previous gate accepted only owner-approved and treated every workflow change as high risk; read-only, credential-free workflow logic now keeps ordinary classification.

Validation

  • Byte-identical to the file on Pigbibi/12345HotlineBots main.
  • YAML parses, and the extracted github-script body passes node --check.
  • The upstream change was replayed against mocked GitHub API responses: rewriting a verification step is high risk, impersonating Dependabot grants no exemption, and a stale receipt fails once the base advances.

@Pigbibi Pigbibi added the owner-approved Owner approval for high-risk PRs. AI agents must never apply this label. label Nov 4, 2026
@Pigbibi

Pigbibi commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

owner-approved 由代理在所有者一次性授权下代加,只用于这批治理升级 PR,不代表所有者逐条审查。升级完成后,后续高危 PR 按新闸使用 agent-approved,状态描述会如实写 NOT confirmed by the owner。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T17:11:18.871902Z 219dff4 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 08ef34010e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/risk-gate.yml Resolved
Comment thread .github/workflows/risk-gate.yml Resolved
Comment thread .github/workflows/risk-gate.yml Resolved
Replace risk-gate.yml with the consolidated version from
12345HotlineBots: Dependabot exemptions require the authenticated
account, deleting any run/uses step line is high risk, and base drift
is checked through git ancestry.

Sync the AGENTS.md label rule: owner-approved means the owner confirmed
the change, agent-approved means an agent cleared it, and when both are
present owner-approved wins.
@Pigbibi
Pigbibi force-pushed the ci/unify-risk-gate branch from 08ef340 to 9668ce5 Compare November 4, 2026 14:29
@Pigbibi Pigbibi changed the title ci(gate): 采用统一 PR 风险闸并同步标签规则 ci(gate): adopt the unified risk gate and sync the label rule Nov 4, 2026
Every non-prose workflow edit now needs a clearing label; a multiline run
rewrite and an added `if: false` no longer pass as ordinary. Dependabot
exemptions require every commit to be authored by the bot, committed by
web-flow and signed, and a repin must keep the same action. A periodic
sweep covers merges made with GITHUB_TOKEN and dispatches to the default
branch.
@Pigbibi

Pigbibi commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 723d21cf27

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

The approver login is read from the RISK_GATE_OWNER repository variable;
an unset variable accepts no label. Job names, workflows moved out of the
directory and runtime config files are now protected. Dependabot
exemptions require every commit to be authored by the bot, committed by
web-flow and signed, and a repin must keep the same action and be listed
in the base-branch policy action_files. A periodic sweep covers merges
made with GITHUB_TOKEN and dispatches to the default branch.
@Pigbibi

Pigbibi commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e5d3828dc2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/risk-gate.yml Resolved
The approver login is read from the RISK_GATE_OWNER repository variable;
an unset variable accepts no label. Job names, any workflow rename,
runtime config files and the dependency policy script are now protected.
Dependabot exemptions require every commit to be authored by the bot,
committed by web-flow and signed, and a repin must keep the same action
and be listed in the base-branch policy action_files. An open PR sharing
the same head fails closed. A periodic sweep covers merges made with
GITHUB_TOKEN and dispatches to the default branch.
The approver login is read from the RISK_GATE_OWNER repository variable;
an unset variable accepts no label. Job names, any workflow rename,
runtime config files and the dependency policy script are now protected.
Dependabot exemptions require every commit to be authored by the bot,
committed by web-flow and signed, and a repin must keep the same action
and be listed in the base-branch policy action_files. An open PR sharing
the same head fails closed. A periodic sweep covers merges made with
GITHUB_TOKEN and dispatches to the default branch.
@Pigbibi

Pigbibi commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5dc4b51345

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/risk-gate.yml Resolved
No workflow line is inert: outside a verified Dependabot same-action repin,
every edit needs a clearing label, and a `#` line in a run block is shell text
whose `${{ }}` expands before Bash sees it. The approver login is read from the
RISK_GATE_OWNER repository variable; an unset variable accepts no label. Job
names, any workflow rename, runtime config files and the dependency policy
script are protected, and a shared head fails closed. A periodic sweep covers
merges made with GITHUB_TOKEN.
@Pigbibi

Pigbibi commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 47b784a749

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

No workflow line is inert: outside a verified Dependabot same-action repin,
every edit needs a clearing label, and a `#` line in a run block is shell text
whose `${{ }}` expands before Bash sees it. The approver login is read from the
RISK_GATE_OWNER repository variable; an unset variable accepts no label. Job
names, any workflow rename, runtime config files and the dependency policy
script are protected, and a shared head fails closed with the leftover error
refreshed when the head changes or the duplicate closes. A periodic sweep
covers merges made with GITHUB_TOKEN.
@Pigbibi

Pigbibi commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 5746c1179b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

No workflow line is inert: outside a verified Dependabot same-action repin,
every edit needs a clearing label, and a `#` line in a run block is shell text
whose `${{ }}` expands before Bash sees it. The approver login is read from the
RISK_GATE_OWNER repository variable; an unset variable accepts no label. Job
names, any workflow rename, runtime config files and the dependency policy
script are protected, and a shared head fails closed with the leftover error
refreshed when the head changes or the duplicate closes. A periodic sweep
covers merges made with GITHUB_TOKEN.
@Pigbibi

Pigbibi commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: a54409c12a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

No workflow line is inert: outside a verified Dependabot same-action repin,
every edit needs a clearing label, and a `#` line in a run block is shell text
whose `${{ }}` expands before Bash sees it. The approver login is read from the
RISK_GATE_OWNER repository variable; an unset variable accepts no label. Job
names, any workflow rename, runtime config files and the dependency policy
script are protected, and a shared head fails closed with the leftover error
refreshed when the head changes or the duplicate closes. A periodic sweep
covers merges made with GITHUB_TOKEN.
@Pigbibi

Pigbibi commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 219dff4c8e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Pigbibi
Pigbibi merged commit fab19a9 into main Nov 4, 2026
12 checks passed
@Pigbibi
Pigbibi deleted the ci/unify-risk-gate branch November 4, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

owner-approved Owner approval for high-risk PRs. AI agents must never apply this label.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant