Repository navigation
feat: require status checks on every default branch (ADR-0076) - #221
Merged
Merged
Conversation
Add ADR-0076 and baseline row B18: every default branch has required status checks that cover the acceptance gate (rules N1 to N5). scripts/apply-triage-settings.sh drafts the 'frostyard: required checks' ruleset and the level labels (dry run by default, queue preflight), and scripts/required-checks-survey.mjs reads the live state, read only. Background: core#218.
…us-checks # Conflicts: # docs/README.md
11 tasks done
The queue preflight now reads every page of closed pull requests (until the newest merged one is certain), workflow runs and jobs; both scripts read every label page; a trigger-helper exit code other than 0 or 1 stops the run; and the trigger check accepts a quoted key followed directly by ':'. Each fix has a targeted test; the guard line is in .memory/corrections.jsonl.
paged_json runs in an if condition, where set -e does not apply. Each step now checks its status, and a page that is not JSON or not an array stops the run before any change. Targeted tests cover a malformed label page, a non-array label page and a malformed run page under --apply.
bketelsen
approved these changes
Nov 9, 2026
2 tasks done
bketelsen
pushed a commit
that referenced
this pull request
Nov 9, 2026
…at L1 (#224) * fix: put scripts/apply-triage-settings.sh back in the risk-path list at L1 The squash merge of #223 rewrote .github/risk-paths.json to schema version 2 and dropped the entry that #221 added, so the script that applies the required-checks ruleset and the level labels fell to the default L3. The entry comes back at L1 (rulesets and settings, risk-paths spec rule H). A test now names each settings script at L1, and a corrections line records the lesson. * test: name the settings-script guard for the administrative scripts it covers --------- Co-authored-by: frostyard-machines <[email protected]>
9 tasks done
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.
Summary
GitHub merges a pull request with red or missing CI when no ruleset requires a status check. core#218 found 13 of 26 repositories without one; a read-only survey on 2026-11-09 finds 19 of 37. This PR records the rule and adds the tooling for it.
frostyard: required checks, no strict checks or queue outside the ADR-0042 repositories (core, updex, std, clix, firn) and repogen, and the exemptions (3 forks with no CI, 2 inactive repositories, 1 repository without PRs).docs/specs/repository-baseline.md, with its exemption tables. The check counts the required check entries fromrules/branches/{default}.scripts/apply-triage-settings.sh OWNER/REPO [--required-check NAME]... [--required-check-any NAME]... [--merge-queue] [--apply]: dry run by default. It writes only the rulesetfrostyard: required checks(create, or replace its rules when they differ) and the 4 missinglevel:L1tolevel:L4labels. With--merge-queue, a preflight refuses a user-owned repository, a required name that no job at the last merged PR's head reports, and a required job whose workflow has nomerge_grouptrigger. Themerge_queueparameters are pinned equal toapply-repo-settings.shby a test.scripts/required-checks-survey.mjs OWNER/REPO...: read only (GET only). 1 Markdown row per repository: default branch, required checks, strict, queue, workflows withmerge_group, the triage caller and its pin, level labels.scripts/lib/workflow-triggers.mjs: tells if a workflow'son:has an event (scalar, flow list, block mapping or list, quotedon, YAML 1.1true), with no YAML dependency. Both scripts use it..github/risk-paths.jsonlistsscripts/apply-triage-settings.sh(workflow-and-permissions).test/check-scripts.test.mjs: the bash-syntax count goes from 3/3 to 4/4 for the new script.Risk paths matched (
risk:high).github/risk-paths.json: 1 entry added; no entry removed or loosened.scripts/apply-triage-settings.shis new; it is listed by this PR. It is safe to merge because it changes nothing by itself: a dry run makes only GET calls (the tests assert an empty mutation log), and--applyneeds an organization admin. It never edits or deletes another ruleset (tested with a same-name organization ruleset and other rulesets).Tracking issue for the owners' names: #222.
Risk tier
Risk tier: 2 — new tooling that writes rulesets and labels when an admin runs it with
--apply, plus a new ADR and baseline row; it changes no workflow and no setting.Docs housekeeping
TEMPLATE.mddocs/README.mdVerification
npm run verifygreen locally at078956d: 567 tests, 0 failuresnode scripts/check-docs.mjsgreenfrostyard/repogen --required-check 'Verify (make verify)'plans 1 ruleset POST and 4 label POSTs;frostyard/updex --required-check Verify --merge-queuepasses the preflight (Verify -> .github/workflows/ci.yml (merge_group: yes)).ADR number: the next free one at the time of writing (0076). If another ADR takes 0076 first, this PR renumbers.
Review
openai/gpt-6.1-sol(coder models:claude-sonnet-5.5for scripts and tests,claude-opus-5.5for docs). Initial review ofb58940cin 2 batches: Not ready, 4 blocking findings (a trigger-helper error did not stop--apply; the queue preflight and the label reads used only the first page; compact quoted YAML flow keys were not recognized). Fixed in166f594. Re-review 1: Not ready, 1 new blocking finding (the pagination helper ran withoutset -eand could return a partial result on a malformed page). Fixed in078956d. Re-review 2 at078956d: Ready, Blocking: none..memory/corrections.jsonl.merge_groupcheck fails 1 test; a dry run that callsgh apifails 4; the survey withstrictalways "no" fails 3;hasTriggerthat ignores the event fails 10. Fixes: scripts at45d651bfail the helper-exit, pagination, label-page and compact-YAML tests; the script at166f594fails exactly the 3 malformed-page tests.main(feat: PR triage workflow that binds ready-for-human to the head commit (ADR-0077) #220, ADR-0077) was merged in at45d651b; the only conflict was the ADR index indocs/README.md.