Repository navigation
ci: release gate action and workflow template, the candidate read as data and the check posted by an app - #55
Merged
Merged
Conversation
pwngh
force-pushed
the
m4-workflow
branch
4 times, most recently
from
December 2, 2026 09:15
7360298 to
378eb80
Compare
…data and the check posted by an app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The release gate runs on pull requests, including ones from forks, while holding the model key and the app's key. It must never run the pull request's code, and only a dedicated app may post the check a branch rule trusts.
actions/release-gate/holds a composite action and the workflow template users copy (kept out of.github/workflows, so it never runs here). The workflow triggers onpull_request_targetinto the default branch only, with noGITHUB_TOKENpermissions, in a protected environment; its one checkout is the default branch, without credentials. The action mints the app's installation token (checks write, contents read, pull requests read), readsflow/candidate.tomland the one system prompt it names at the head commit through the contents API, as data (flowd/check/github.py, standard library only), runsflow checkfrom the action's own copy of Flow with isolated Python, and postsflow/release-gateon the head commit: success only for passed. Every action is pinned to a commit.Proof:
tests/check/test_github.py(10 tests against a fake GitHub API: the candidate read only at the head commit and a script beside it never run; bad candidates refused; no repository path echoed into logs; the check posted with the app's token on the head commit with the exact name, success only for passed; static checks that the workflow never checks out the pull request and every Python call is isolated). Both YAML files parse;anthropic==2.16.0installs on a clean Python 3.12. Full Python suite passed.Reviewed with sol-loop: 3 rounds with gpt-6.2-sol. Sol verdict: approved