Repository navigation
feat(organization): publish the repository settings contract (ADR-0040) - #91
Merged
Merged
Conversation
organization/contracts/repository-settings/v1.json fixes, organization-wide, the GitHub repository settings every enrolled repository must match: merge hygiene, the default-branch ruleset (the Fluent ADR-0056 shape plus required conversation resolution), a v* tag ruleset, Actions token permissions, security features, metadata, and the labels the fleet depends on. Schema, valid and rejection fixtures, validator support (path, kind, invariants: required checks imply a required pull request; the tag ruleset must protect something), spec section, organization README. Fluent reads and proposes; scripts/apply-repo-settings.sh (next) applies. Co-Authored-By: Claude Fable 5 <[email protected]>
…tory settings contract Human-run, dry-run by default, idempotent: plans and (with --apply) makes the exact GitHub API calls the contract implies — repository PATCH for merge hygiene, features, and security_and_analysis; topics; Actions workflow permissions; vulnerability alerts; private vulnerability reporting; the default-branch ruleset (needs --required-checks) and the v* tag ruleset (admins bypass so make bump still tags); missing labels. Never deletes a ruleset it did not create; reports rather than writes license, description, and classic protection. Co-Authored-By: Claude Fable 5 <[email protected]>
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
ADR-0040 and the contract it publishes:
organization/contracts/repository-settings/v1.json, validated byorganization/schemas/v1/repository-settings.schema.json.Version one is organization-wide — every enrolled repository must match every value:
repository: delete branch on merge, suggest updating branches, no auto-merge, all merge methods,MERGE_MESSAGE/PR_TITLEmerge commit andPR_TITLE/COMMIT_MESSAGESsquash defaults, wiki/projects off, issues on, no web sign-offactions: workflow tokenread, cannot approve PRssecurity: Dependabot alerts + security updates, secret scanning + push protection, private vulnerability reportingdefault_branch_ruleset: active, no bypass, PR required (0 approvals), conversation resolution, strict required checks, no deletion/force push, no merge queue, no classic protection — the Fluent ADR-0056 v1 shapetag_ruleset:v*, no deletion/force update, creation restrictedmetadata: license + description required,frostyardtopiclabels:fluentDeliberately not in v1 (observed, not required): visibility, discussions, code scanning, exact required-check names. Fluent reads and proposes drift;
scripts/apply-repo-settings.sh(follow-up PR) applies; Fluent holds no admin credential.Validator: new path/kind, invariants (required checks ⇒ PR required; tag ruleset must protect something), 1 valid + 4 rejection fixtures. Spec section, organization README, docs index.
Merge order
Fluent's validator rejects unrecognized
organization/paths, so merge the matching Fluent PR (bundled schema + path recognition) first, then this.Verification
npm run checkgreen:organization authority valid: 5 declarations … 7 valid fixtures, 18 rejection fixtures, 9/9 tests.Survey that motivated it (2026-08-18, all five fleet repos): no default-branch ruleset or protection anywhere; workflow tokens
write+ can-approve on 4/5; secret scanning off everywhere; Dependabot alerts off on fluent; delete-branch-on-merge only on updex; no license on core/fluent.🤖 Generated with Claude Code