Skip to content

launcher: guard public exceptions by active workflow event - #171

Merged
SSFSKIM merged 3 commits into
mainfrom
public-trigger-guard
Oct 27, 2026
Merged

SSFSKIM merged 3 commits into
mainfrom
public-trigger-guard

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

What changes

Public repositories admitted by allow_public are served only while every queued/in-progress run is push, workflow_dispatch, or schedule. Any other event refuses the whole repository for that tick, including a run with no pool jobs. Existing refusal cleanup drains idle unclaimed runners and leaves busy jobs alone. The log identifies the run/event; the existing issue-backed alert path deduplicates one open alert per repository.

Private repositories are unchanged. An unreadable active-run snapshot launches nothing but does not trigger a drain; only an observed unsafe or missing event does. docs/pool.md documents the rule and its boundary.

Verification

  • TDD: the new unsafe-event, drain/deduplication, and alert-failure tests failed against the previous launcher.
  • Focused test/gce/launcher.test.mjs: 58/58 passing, including regressions that preserve idle runners on a failed run snapshot but still drain/alert for a known unsafe run when job-detail reads fail.
  • Full committed-HEAD ci-gate on 6e7373f: PASS test 2m51s; GREEN https://github.com/SSFSKIM/ci-kit/actions/runs/40436671220.

Scope and deployment

Related to #168; does not close it. Investigation showed a nonzero job-started hook still allows always()/failure() workflow steps and action pre scripts, so no hook edits or worker shutdown are included. Persistent Macs still need a separately designed runtime admission boundary. The launcher checks its tick snapshot, not per-job admission.

After merge, deploy the launcher (gce/deploy.sh launcher). No Mac installer refresh or pool image bake is needed. Nothing has been merged or deployed.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

Gate allow_public on the active run event set, reuse refusal draining and issue-backed alerts, and leave private repositories unchanged.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-10-27T02:01:09.916351Z 68e38d5 PR opened
ℹ️ 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.

An unknown run snapshot already supplies no launch demand; only an observed unsafe event should trigger the public refusal drain.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
The run listing now stands apart from the job reads, so an unsafe active run on a public exception still refuses the repo, drains its idle runners and alerts when a listJobs call fails. A safe snapshot with failed job reads stays served with no demand.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@SSFSKIM
SSFSKIM merged commit 54b7f60 into main Oct 27, 2026
3 checks passed
@SSFSKIM
SSFSKIM deleted the public-trigger-guard branch October 27, 2026 02:12
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.

1 participant