Repository navigation
ci: the release guard drafts when it cannot see, and waits for late checks - #88
Merged
Merged
Conversation
…hecks Actions runs the guard under bash -e. When one API read failed during the wait, the step died before drafting or opening an issue, and the release stayed public with only a red job as trace. Every read now sits inside a condition: a read that fails, returns garbage, or does not hold every check counts as one more wait, and if the last read was incomplete when the wait runs out, the release is drafted. The guard also decided as soon as the checks that already existed were done, so a job that runs after another created its check too late to be judged. It now waits while any workflow run on the tagged commit is still going, except runs started by a release, and reads 100 check runs per page instead of 30. It declares actions: read and checks: read, which the two private repositories in the family need. Measured by execution against controlled inputs, the live API and mutants, with agent's current guard as the control (greenhouse evidence/0171).
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.
Follow-up to the release guard that waits for its checks (#31 in milpa/agent, propagated 2026-11-04). The independent review of that propagation passed with two low findings; this closes both.
A read that fails no longer leaves the release public. Actions runs the step under
bash -e. When one API read failed during the wait, the step died before drafting or opening an issue, and the release stayed public with only a red job as trace. Now:Late checks are awaited. The guard decided as soon as the checks that already existed were done, so a job that runs after another created its check too late to be judged. Now:
actions: readandchecks: read, which private repositories need.If a workflow is still running after ten minutes while every relevant check is green, the release stays published with a warning. Drafting there would turn any long workflow that does not test the tree into a false positive.
Measured by execution: controlled inputs under
bash -e, injected API failures, the live API with writes stubbed, and mutants of each mechanism, with the current guard as the control. The current guard aborts without drafting in every failure case and passes a late red check; the new one drafts. Evidence: getmilpa/greenhouse.milpa/evidence/0171.The same file goes to milpa/agent and the 39 repos that carry the guard. Each was replaced only after checking it held the current copy byte for byte.