Skip to content

ci(policy): finish the trusted issue-first migration - #34

Merged
abruption merged 1 commit into
mainfrom
ci/7-retire-legacy
Nov 15, 2026
Merged

abruption merged 1 commit into
mainfrom
ci/7-retire-legacy

Conversation

@abruption

Copy link
Copy Markdown
Owner

Complete the source-side migration to the base-revision Issue-first policy. Remove the legacy pull_request workflow and replace its migration-presence test with an assertion that the legacy file is absent. Keep the metadata validation behavior and read-only/no-checkout boundary unchanged. Also remove the unsupported setup-node v4 package-manager-cache input, which failed actionlint and produced a warning in real runs.

Closes #7

Validation:

  • Typecheck and 11 synthetic policy tests pass; actionlint v1.7.12 and diff checks pass.
  • Independent Claude Opus 5.5 and Gemini 4 Argon medium reviews completed on the same frozen input. No code-blocking findings; the procedural requirement to verify real check provenance before retiring legacy is retained.
  • Reference search found no remaining legacy consumers outside the migration test.

Rollout:

  • The owner authorized adding Trusted Issue-first PR (app 15368) as required alongside verify and legacy. The active strict ruleset and empty bypass list were preserved.
  • Before retiring legacy, verify this PR head has successful real trusted and verify jobs. Check the trusted run event=pull_request_target, workflow path, head SHA, app, and absence of duplicate names; names alone do not prove provenance.
  • Then remove only the legacy required context and re-read both effective rules and classic protection. Keep trusted+verify, strict checks, PR/thread-resolution requirements, and force-push/deletion protection.
  • This stays Draft. Owner Ready conversion, Codex review, resolved discussions, and explicit merge approval remain required.

The existing successful trusted run 43569114315 proves execution and read-only token permissions, but its exact GITHUB_WORKFLOW_SHA was not emitted. This PR cannot execute its own changed pull_request_target workflow before merge: observe the next legitimate PR after merge before closing the migration audit. No fabricated statuses or adversarial test PRs are used. Status contexts are name/app-bound rather than cryptographically bound to one workflow; actual run provenance is inspected during migration. Workflow-only change: no npm publication or Worker deployment is needed.

@abruption

Copy link
Copy Markdown
Owner Author

Owner-authorized ruleset transition completed after validating this Draft PR head cafaa79:

  • Trusted check: run 43686546742, event pull_request_target, path .github/workflows/trusted-pr-policy.yml, current PR head, GitHub Actions app 15368, success. The run/check-suite mapping matched and exactly one check had this name.
  • Verify: run 43686546335, event pull_request, CI workflow, current PR head, app 15368, success; all four Node24/26 macOS/Ubuntu jobs passed typecheck/build/tests/package smoke.
  • Main CI rerun 43604130139 attempt 2 also completed successfully. No manually generated success statuses.
  • Removed only legacy Issue-first PR from required contexts. Effective main rules now require verify + Trusted Issue-first PR (both app 15368), with strict checks. All other protection rules are identical to the pre-transition snapshot: active main ruleset, PR/thread-resolution requirements, force-push/deletion restrictions, empty bypass actors, current-user bypass never.
  • Classic branch-protection API still returns 404; branch/rules APIs confirm active ruleset protection.

Source workflow deletion is only in this Draft PR; main still retains the legacy file until normal review and merge. No Ready conversion, merge, npm publication, or Worker deployment was performed. Observe the updated base workflow on the next legitimate PR after merge; pre-merge trusted success executes the existing base workflow, not this PR's updated copy.

@abruption
abruption marked this pull request as ready for review November 15, 2026 06:46
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T06:47:19.110924Z cafaa79 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-15T06:49:00.243236Z cafaa79 Draft marked ready
ℹ️ 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.

@abruption
abruption merged commit ae48fd3 into main Nov 15, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(workflow): finish trusted issue-policy migration after bootstrap

1 participant