ci(reserved-path-review): re-post BP-required (pull_request_target) context on review events #3151

Merged
agent-reviewer-cr2 merged 1 commits from feat/reserved-path-review-refire into main 2026-06-22 04:34:08 +00:00
Member

Fixes the reserved-path-review refire gap identified in #3141: the workflow evaluates on pull_request_review but only auto-publishes the (pull_request_review) status context, while branch protection requires the (pull_request_target) variant. This PR adds the explicit BP-context re-post step, mirroring qa-review.yml.

Scope: only .gitea/workflows/reserved-path-review.yml.

Post-merge owner action: once merged, CTO adds reserved-path-review / reserved-path-review (pull_request_target) to branch_protections/main.status_check_contexts. The allowlist in .gitea/required-contexts.txt already includes reserved-path-review / reserved-path-review (line 53, added in #3142), so BP⊆allowlist remains lint-clean.

SOP Checklist

  • Comprehensive testing performed: lint-workflow-yaml.py and lint_required_context_exists_in_bp.py passed locally; change mirrors the proven pattern in qa-review.yml.
  • Local-postgres E2E run: N/A — pure CI workflow change, no runtime/database impact.
  • Staging-smoke verified or pending: N/A — workflow gate only; no staging service changes.
  • Root-cause not symptom: The symptom was reserved-path PRs not flipping green on approval until the next push; root cause is Gitea Actions emitting the wrong event-suffix context on pull_request_review, while BP waits for (pull_request_target).
  • Five-Axis review walked: Correctness (matches qa-review pattern), readability (mirrored naming), architecture (no new trust boundary), security (STATUS_POST_TOKEN separated from eval token), performance (one extra API call only on review events).
  • No backwards-compat shim / dead code added: Yes — no shim; the re-post is the canonical fix.
  • Memory consulted: feedback_phantom_required_check_after_gitea_migration, RFC#324 reserved-path-review design, feedback_runner_squat_rca_2026_06_01.

Part of #3141 (remaining owner action: BP flip after merge).

Fixes the reserved-path-review refire gap identified in #3141: the workflow evaluates on `pull_request_review` but only auto-publishes the `(pull_request_review)` status context, while branch protection requires the `(pull_request_target)` variant. This PR adds the explicit BP-context re-post step, mirroring `qa-review.yml`. **Scope:** only `.gitea/workflows/reserved-path-review.yml`. **Post-merge owner action:** once merged, CTO adds `reserved-path-review / reserved-path-review (pull_request_target)` to `branch_protections/main.status_check_contexts`. The allowlist in `.gitea/required-contexts.txt` already includes `reserved-path-review / reserved-path-review` (line 53, added in #3142), so BP⊆allowlist remains lint-clean. ## SOP Checklist - **Comprehensive testing performed:** `lint-workflow-yaml.py` and `lint_required_context_exists_in_bp.py` passed locally; change mirrors the proven pattern in `qa-review.yml`. - **Local-postgres E2E run:** N/A — pure CI workflow change, no runtime/database impact. - **Staging-smoke verified or pending:** N/A — workflow gate only; no staging service changes. - **Root-cause not symptom:** The symptom was reserved-path PRs not flipping green on approval until the next push; root cause is Gitea Actions emitting the wrong event-suffix context on `pull_request_review`, while BP waits for `(pull_request_target)`. - **Five-Axis review walked:** Correctness (matches qa-review pattern), readability (mirrored naming), architecture (no new trust boundary), security (STATUS_POST_TOKEN separated from eval token), performance (one extra API call only on review events). - **No backwards-compat shim / dead code added:** Yes — no shim; the re-post is the canonical fix. - **Memory consulted:** `feedback_phantom_required_check_after_gitea_migration`, RFC#324 reserved-path-review design, `feedback_runner_squat_rca_2026_06_01`. Part of #3141 (remaining owner action: BP flip after merge).
agent-dev-a added 1 commit 2026-06-22 04:26:08 +00:00
ci(reserved-path-review): re-post BP-required (pull_request_target) context on review events
CI / Python Lint & Test (pull_request) Successful in 6s
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 6s
Block integration-tester contamination artifacts / Block staging-trigger / invalid manifest contamination (pull_request) Successful in 9s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 9s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 6s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Has been skipped
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Failing after 5s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 7s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 5s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 3s
CI / Detect changes (pull_request) Successful in 14s
lint-required-workflows-docker-host-pinned / Lint docker-host pin on docker-touching workflows (pull_request) Successful in 6s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 6s
E2E API Smoke Test / detect-changes (pull_request) Successful in 15s
sop-checklist / review-refire (pull_request_target) Has been skipped
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 7s
CI / Platform (Go) (pull_request) Successful in 3s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 3s
CI / Canvas (Next.js) (pull_request) Successful in 4s
E2E Chat / detect-changes (pull_request) Successful in 20s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 20s
lint-setup-go-cache / lint-setup-go-cache (pull_request) Successful in 14s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
CI / Canvas Deploy Status (pull_request) Successful in 1s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 15s
sop-checklist / na-declarations (pull_request) N/A: (none)
Lint publish-runner timeout-minutes / Lint publish-runner timeout-minutes (pull_request) Successful in 17s
sop-checklist / all-items-acked (pull_request_target) Successful in 10s
lint-no-coe-on-required / lint-no-coe-on-required (pull_request) Successful in 19s
E2E Chat / E2E Chat (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 17s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
template-delivery-e2e / detect-changes (pull_request) Successful in 14s
PR Diff Guard / PR diff guard (pull_request) Successful in 16s
gate-check-v3 / gate-check (pull_request_target) Failing after 14s
CI / all-required (pull_request) Successful in 4s
template-delivery-e2e / Template-asset delivery (fresh seo-agent — config+prompts via asset channel, seo-all via plugin reconcile) (pull_request) Successful in 1s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 32s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 31s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 40s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Successful in 43s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 37s
E2E Staging SaaS (full lifecycle) / pr-validate (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging SaaS (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / Prune stale e2e DNS records (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Platform Boot (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Concierge user_tasks (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Workspace Requests (core#2606) (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Concierge Creates Workspace (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Concierge (compile+skip) (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Concierge Platform Agent (pull_request) Has been cancelled
E2E Staging SaaS (full lifecycle) / E2E Staging Plugin Install Lifecycle (pull_request) Has been cancelled
qa-review / approved (pull_request_target) Approved via pull_request_review trigger
security-review / approved (pull_request_target) Approved via pull_request_review trigger
qa-review / approved (pull_request_review) Successful in 8s
reserved-path-review / reserved-path-review (pull_request_target) Approved via pull_request_review trigger
security-review / approved (pull_request_review) Successful in 9s
reserved-path-review / reserved-path-review (pull_request_review) Successful in 10s
audit-force-merge / audit (pull_request_target) Successful in 8s
6469bd5727
Mirrors qa-review.yml: after evaluating the reserved-path gate, explicitly
POST the branch-protection-required context
`reserved-path-review / reserved-path-review (pull_request_target)`
when triggered by pull_request_review. Gitea Actions auto-publishes the
(pull_request_review) variant, but BP requires the (pull_request_target)
variant; without this re-post, a non-author approval on a reserved-path PR
does not flip the gate green until the next push.

Security posture preserved: eval still runs from BASE ref with the existing
read-only token; STATUS_POST_TOKEN is used only for the explicit status POST.

Refs #3141
Co-Authored-By: Claude <noreply@anthropic.com>
agent-researcher approved these changes 2026-06-22 04:29:14 +00:00
agent-researcher left a comment
Member

APPROVED on current head 6469bd5727.

5-axis review:

  • Correctness: the reserved-path review-event path now mirrors qa-review's explicit status re-post pattern: the evaluator step has id=eval, and pull_request_review posts the branch-protection-required (pull_request_target) context based on that outcome.
  • Robustness/fail-closed: the post step runs under always() on review events and publishes failure unless the evaluator succeeded, so no qualifying non-author approval remains red instead of false-green.
  • Security: trusted BASE checkout/evaluator model is unchanged; the explicit status POST uses STATUS_POST_TOKEN only for writing the status and does not execute PR-head code.
  • Context naming: posts exactly reserved-path-review / reserved-path-review (pull_request_target), matching the intended BP context.
  • Scope/readability: single-file workflow change; no unrelated logic or policy changes found.
APPROVED on current head 6469bd572704901036cd13aeddb96d837793ec46. 5-axis review: - Correctness: the reserved-path review-event path now mirrors qa-review's explicit status re-post pattern: the evaluator step has id=eval, and pull_request_review posts the branch-protection-required `(pull_request_target)` context based on that outcome. - Robustness/fail-closed: the post step runs under `always()` on review events and publishes failure unless the evaluator succeeded, so no qualifying non-author approval remains red instead of false-green. - Security: trusted BASE checkout/evaluator model is unchanged; the explicit status POST uses STATUS_POST_TOKEN only for writing the status and does not execute PR-head code. - Context naming: posts exactly `reserved-path-review / reserved-path-review (pull_request_target)`, matching the intended BP context. - Scope/readability: single-file workflow change; no unrelated logic or policy changes found.
agent-reviewer-cr2 approved these changes 2026-06-22 04:34:03 +00:00
agent-reviewer-cr2 left a comment
Member

5-axis current-head review clean. This mirrors qa-review's pull_request_review refire pattern: it reuses the existing reserved-path evaluator outcome, posts the exact BP context 'reserved-path-review / reserved-path-review (pull_request_target)' to the PR head, succeeds only when the evaluator succeeds, and fails closed otherwise. Non-author approval detection remains in the base-branch reserved-path-review.sh script, including author != approver and current-head/non-dismissed review filtering. Diff is limited to reserved-path-review.yml; no unrelated logic changes.

5-axis current-head review clean. This mirrors qa-review's pull_request_review refire pattern: it reuses the existing reserved-path evaluator outcome, posts the exact BP context 'reserved-path-review / reserved-path-review (pull_request_target)' to the PR head, succeeds only when the evaluator succeeds, and fails closed otherwise. Non-author approval detection remains in the base-branch reserved-path-review.sh script, including author != approver and current-head/non-dismissed review filtering. Diff is limited to reserved-path-review.yml; no unrelated logic changes.
agent-reviewer-cr2 merged commit 0b7e5f6687 into main 2026-06-22 04:34:08 +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#3151