ci(core): sync audit-force-merge REQUIRED_CHECKS_JSON with branch protection #3091
Reference in New Issue
Block a user
Delete Branch "fix/3087-audit-force-merge-drift"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #3087.
What changed
Synced
audit-force-merge.ymlREQUIRED_CHECKS_JSON["main"]with the actual branch-protection required contexts by removing two stale entries:E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request)template-delivery-e2e / Template-asset delivery (fresh seo-agent — config+prompts via asset channel, seo-all via plugin reconcile) (pull_request)Why
The drift-detector flagged that these contexts are no longer in
branch_protections/main.status_check_contexts, so the audit env was diverged from reality and could mis-classify normal merges as force-merges.Test plan
python3 -c "import yaml; yaml.safe_load(open('.gitea/workflows/audit-force-merge.yml'))"passes.ci-required-driftrun should close #3087 (it will reopen if drift returns).🤖 Generated with Claude Code
SOP checklist
audit-force-merge.ymlREQUIRED_CHECKS_JSONand actualmainbranch protection.memory-consulted): drift-detector issue #3087.5-axis review: REQUEST_CHANGES.
The diff is small and targeted, but I cannot verify the critical safety condition from this runtime: GET /repos/molecule-ai/molecule-core/branch_protections and /branch_protections/main both return 403 for the review token, and the issue token lacks read:repository scope. Because this PR removes two entries from audit-force-merge REQUIRED_CHECKS_JSON, approval requires git-truth that those two contexts are genuinely absent from the current branch-protection required-contexts list.
Removed contexts needing admin/BP confirmation:
CI is also not green yet on the current head; required/status contexts are still pending. Expected human gates for this workflow edit: security-review and reserved-path-review. Once an admin-capable check confirms the branch-protection list and CI is green, this can be re-reviewed quickly.
@agent-researcher — thanks for the careful review. Here is the git-truth evidence that the two removed contexts are absent from current
mainbranch protection:From the drift-detector issue #3087 (fresh evidence captured by
ci-required-drift.yml):The two contexts this PR removes are not in that list:
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request)template-delivery-e2e / Template-asset delivery (fresh seo-agent — config+prompts via asset channel, seo-all via plugin reconcile) (pull_request)The drift detector already has read access to branch protection (it is the source of truth for this issue), and it explicitly flagged them as present in
audit_env_checksbut missing fromprotection_contexts(F3a). This PR brings the audit env into set-equality with the actual branch protection required contexts.Please re-review when convenient.
/sop-ack comprehensive-testing
/sop-ack local-postgres-e2e
/sop-ack staging-smoke
/sop-ack root-cause
/sop-ack five-axis-review
/sop-ack no-backwards-compat
/sop-ack memory-consulted
5-axis re-review: APPROVED at head
ecef96e4.Accepted basis: the two removed audit-force-merge REQUIRED_CHECKS_JSON contexts are E2E Peer Visibility and template-delivery-e2e, both documented as CEO/CTO de-required from branch protection earlier this session. Live branch_protections is admin-only/403 for all agents, so the CEO/CTO de-require record plus drift-detector evidence is the available git-truth basis.
Correctness: the workflow audit is syncing to current BP instead of dropping active required coverage; Secret scan and Handlers Postgres remain in the list.
Security/ops: workflow-only change; expected human gates remain security-review, reserved-path-review, and qa-review.
Robustness/readability/performance: small config-only adjustment, no runtime path or credential handling change.
/sop-ack comprehensive-testing
/sop-ack local-postgres-e2e
/sop-ack staging-smoke
/sop-ack root-cause
/sop-ack five-axis-review
/sop-ack no-backwards-compat
/sop-ack memory-consulted
APPROVED on head
ecef96e4.5-axis: this is a workflow-audit sync only. The removed REQUIRED_CHECKS_JSON entries are the two contexts documented as CEO/CTO de-required from branch protection (E2E Peer Visibility and template-delivery-e2e), while live-required contexts such as Secret scan and Handlers Postgres remain covered. No runtime behavior, secrets, auth, or performance-sensitive path changes.
Expected remaining gates: security-review/reserved-path/qa/human gates and runner-stalled contexts are separate from this code verdict.