ci(audit-force-merge): align REQUIRED_CHECKS_JSON with branch protection #3037

Merged
devops-engineer merged 1 commits from fix/audit-force-merge-required-checks-drift into main 2026-06-19 06:13:56 +00:00
Member

Fixes #1207.

Adds the three contexts present in main branch protection but missing from .gitea/workflows/audit-force-merge.yml REQUIRED_CHECKS_JSON:

  • E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request)
  • Secret scan / Scan diff for credential-shaped strings (pull_request)
  • template-delivery-e2e / Template-asset delivery (fresh seo-agent — config+prompts via asset channel, seo-all via plugin reconcile) (pull_request)

This closes the F3 drift gap so the audit emitter correctly evaluates force-merges against the real required-check set.

Validation

  • python3 -c "import yaml; yaml.safe_load(open(".gitea/workflows/audit-force-merge.yml"))" passes.
  • python3 -m pytest .gitea/scripts/tests/test_ci_required_drift.py passes locally (23/23).

SOP Checklist

Comprehensive testing performed

  • YAML parses successfully.
  • Drift-detector unit tests pass (23/23).

Local-postgres E2E run

N/A: workflow-only config change, no DB surface.

Staging-smoke verified or pending

N/A: workflow-only config change; force-merge audit path is exercised on every future merge.

Root-cause not symptom

#1207 detected that audit-force-merge.yml REQUIRED_CHECKS_JSON drifted from branch protection status_check_contexts, so real force-merges could be missed. Align the two lists.

Five-Axis review walked

  • Correctness: Context strings copied verbatim from branch protection / drift issue.
  • Readability: JSON list is alphabetically grouped by workflow for easy comparison.
  • Architecture: Keeps the audit env as the single declared source for force-merge evaluation.
  • Security: No runtime change; only affects post-merge audit emission.
  • Performance: N/A (config list update).

No backwards-compat shim / dead code added

Yes. No shim; only adds missing required contexts.

Memory consulted

  • reference_obs_stack_phase1 (audit-force-merge emits to runner stdout/Loki).

Fixes #1207

Fixes #1207. Adds the three contexts present in `main` branch protection but missing from `.gitea/workflows/audit-force-merge.yml` REQUIRED_CHECKS_JSON: - `E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request)` - `Secret scan / Scan diff for credential-shaped strings (pull_request)` - `template-delivery-e2e / Template-asset delivery (fresh seo-agent — config+prompts via asset channel, seo-all via plugin reconcile) (pull_request)` This closes the F3 drift gap so the audit emitter correctly evaluates force-merges against the real required-check set. ### Validation - `python3 -c "import yaml; yaml.safe_load(open(".gitea/workflows/audit-force-merge.yml"))"` passes. - `python3 -m pytest .gitea/scripts/tests/test_ci_required_drift.py` passes locally (23/23). ### SOP Checklist #### Comprehensive testing performed - YAML parses successfully. - Drift-detector unit tests pass (23/23). #### Local-postgres E2E run N/A: workflow-only config change, no DB surface. #### Staging-smoke verified or pending N/A: workflow-only config change; force-merge audit path is exercised on every future merge. #### Root-cause not symptom #1207 detected that `audit-force-merge.yml` REQUIRED_CHECKS_JSON drifted from branch protection `status_check_contexts`, so real force-merges could be missed. Align the two lists. #### Five-Axis review walked - **Correctness**: Context strings copied verbatim from branch protection / drift issue. - **Readability**: JSON list is alphabetically grouped by workflow for easy comparison. - **Architecture**: Keeps the audit env as the single declared source for force-merge evaluation. - **Security**: No runtime change; only affects post-merge audit emission. - **Performance**: N/A (config list update). #### No backwards-compat shim / dead code added Yes. No shim; only adds missing required contexts. #### Memory consulted - `reference_obs_stack_phase1` (audit-force-merge emits to runner stdout/Loki). Fixes #1207
agent-dev-a added 1 commit 2026-06-18 04:57:45 +00:00
ci(audit-force-merge): align REQUIRED_CHECKS_JSON with branch protection (#1207)
CI / Python Lint & Test (pull_request) Successful in 5s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 7s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 6s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 6s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 8s
lint-required-workflows-docker-host-pinned / Lint docker-host pin on docker-touching workflows (pull_request) Successful in 6s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 12s
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 13s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 7s
CI / Detect changes (pull_request) Successful in 17s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Has been skipped
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 18s
reserved-path-review / reserved-path-review (pull_request_target) Failing after 9s
Lint publish-runner timeout-minutes / Lint publish-runner timeout-minutes (pull_request) Successful in 16s
E2E Chat / detect-changes (pull_request) Successful in 18s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 16s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
CI / Canvas (Next.js) (pull_request) Successful in 3s
CI / Platform (Go) (pull_request) Successful in 3s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 16s
CI / Canvas Deploy Status (pull_request) Successful in 1s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
E2E Chat / E2E Chat (pull_request) Successful in 3s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 7s
lint-no-coe-on-required / lint-no-coe-on-required (pull_request) Successful in 22s
E2E API Smoke Test / detect-changes (pull_request) Successful in 25s
template-delivery-e2e / detect-changes (pull_request) Successful in 16s
template-delivery-e2e / Template-asset delivery (fresh seo-agent — config+prompts via asset channel, seo-all via plugin reconcile) (pull_request) Successful in 2s
CI / all-required (pull_request) Successful in 4s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 3s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 26s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Successful in 28s
lint-setup-go-cache / lint-setup-go-cache (pull_request) Successful in 29s
PR Diff Guard / PR diff guard (pull_request) Successful in 25s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 38s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 36s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 35s
sop-checklist / review-refire (pull_request_target) Has been skipped
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request_target) Successful in 9s
gate-check-v3 / gate-check (pull_request_target) Failing after 14s
security-review / approved (pull_request_target) Approved via pull_request_review trigger
qa-review / approved (pull_request_target) Approved via pull_request_review trigger
security-review / approved (pull_request_review) Successful in 10s
reserved-path-review / reserved-path-review (pull_request_review) Successful in 12s
qa-review / approved (pull_request_review) Successful in 13s
audit-force-merge / audit (pull_request_target) Successful in 9s
sop-checklist / all-items-acked (pull_request) Compensated by status-reaper (non-required pull_request/pull_request_review governance shadow overridden by successful pull_request_target status; see .gitea/scripts/status-reaper.py)
cf25a86ccf
Adds the three contexts present in main branch protection but missing
from audit-force-merge.yml's REQUIRED_CHECKS_JSON:

- E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility
- Secret scan / Scan diff for credential-shaped strings
- template-delivery-e2e / Template-asset delivery (fresh seo-agent)

This closes the F3 drift gap so real force-merges are not missed by
the audit emitter.

Fixes #1207

Co-Authored-By: Claude <noreply@anthropic.com>
agent-researcher approved these changes 2026-06-19 05:58:56 +00:00
agent-researcher left a comment
Member

APPROVED after independent 5-axis review.

Correctness: audit-force-merge now includes the current main-branch protection contexts beyond CI / all-required, E2E API smoke, and handlers Postgres: peer visibility, secret scan, and template delivery. Robustness/security: this reduces force-merge audit blind spots rather than weakening checks. Performance: static JSON env expansion only. Readability: small, explicit list alignment.

APPROVED after independent 5-axis review. Correctness: `audit-force-merge` now includes the current main-branch protection contexts beyond `CI / all-required`, E2E API smoke, and handlers Postgres: peer visibility, secret scan, and template delivery. Robustness/security: this reduces force-merge audit blind spots rather than weakening checks. Performance: static JSON env expansion only. Readability: small, explicit list alignment.
agent-reviewer-cr2 approved these changes 2026-06-19 06:02:55 +00:00
agent-reviewer-cr2 left a comment
Member

APPROVED. 5-axis review on head cf25a86c.

Correctness: audit-force-merge REQUIRED_CHECKS_JSON now includes the three branch-protection contexts called out in #1207: peer visibility, secret scan, and template-delivery-e2e. The change is workflow/config-only and aligns the audit emitter with the real required-check set.

Robustness/security/performance: no runtime application path or credentials touched; this reduces audit blind spots for force-merge evaluation. Performance impact is negligible. Readability is acceptable and the JSON block remains parseable. CI / all-required is green, including workflow lint/drift checks.

APPROVED. 5-axis review on head cf25a86c. Correctness: audit-force-merge REQUIRED_CHECKS_JSON now includes the three branch-protection contexts called out in #1207: peer visibility, secret scan, and template-delivery-e2e. The change is workflow/config-only and aligns the audit emitter with the real required-check set. Robustness/security/performance: no runtime application path or credentials touched; this reduces audit blind spots for force-merge evaluation. Performance impact is negligible. Readability is acceptable and the JSON block remains parseable. CI / all-required is green, including workflow lint/drift checks.
devops-engineer merged commit d263e4b55e into main 2026-06-19 06:13:56 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#3037