Repository navigation
docs(template): fix stale branch-protection ruleset + seed glossary - #108
Merged
Merged
Conversation
The template's docs/architecture/branch-protection.md carried stale, harmon-infra-specific content that misrepresented the ruleset the template actually ships and contradicted ci-cd.md: - Embedded ruleset JSON had a hardcoded id (14110902), wrong required checks (secrets/validate/build-homepage), no merge_queue, and a bypass actor that didn't match the shipped ruleset. Replaced it with a faithful mirror of `.github/Branch Protection Ruleset - Protect Main.json` (verify + security; org-conditional merge_queue + OrganizationAdmin bypass vs personal RepositoryRole), plus a "keep in sync" note. - Fixed the `bypass_actors: []` section, which claimed "no one can bypass" while the JSON showed a bypass actor — now describes the real org/personal posture. - Replaced the required-checks table (validate-compose/validate-templates/ build-homepage) with verify + security and what verify rolls up (project-type aware), consistent with ci-cd.md. - Added a merge_queue rule explanation (org-only) and removed a stray `ponderous` org reference. Also seed docs/glossary.md (was a single TODO row) with the template-known toolchain terms (verify, security, task/Taskfile, release-please, the `<org>-ci` GitHub App, devcontainer profiles, 1Password Environments, bot vs operator), keeping a trailing TODO for project-specific terms. Root dogfood copies (docs/architecture/branch-protection.md, docs/glossary.md) re-rendered to match. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
RepositoryRole actor_id 5 is the **Repository admin** role, not Maintain (confirmed via github/rest-api-description#4406). Fix the prose in the personal-profile bypass_actors section of branch-protection.md (template + root dogfood copy); the JSON was already correct. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Change the admin bypass on the Protect Main ruleset from bypass_mode "always" to "pull_request" for both profiles (personal RepositoryRole admin and org OrganizationAdmin). Admins can still merge PRs that haven't met every requirement (a solo maintainer's own PR that can't be self-approved, or a stuck check) but can no longer push directly to main — an accidental `git push origin main` is now rejected by the ruleset like any other actor's. Updates the shipped ruleset JSON, the embedded JSON + prose in branch-protection.md, and the root dogfood copies (ruleset + doc). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…always) Add an explicit, regression-resistant note in branch-protection.md explaining why every bypass actor is scoped to pull_request mode (admins may merge a non-compliant PR but cannot push directly to main) and warning that widening to always is a deliberate security loosening. Re-render the root dogfood copy. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…(MD049) The design-intent note used single-asterisk emphasis (*merge*) in the template source, which renders to an MD049 violation in generated repos. Switch to underscore emphasis and re-render the root dogfood copy. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This was referenced Aug 4, 2026
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.
A focused pass over the template docs (
template/docs/). A read-only review found the docs are in good shape overall —ci-cd.md,security.md,conventions.md,CHECKLIST.md, and the devcontainer guides are accurate and appropriately specific — with one genuinely broken doc and one near-empty one.branch-protection.mdwas stale and self-contradictoryThe template's
docs/architecture/branch-protection.mdstill carried harmon-infra-specific content that misrepresented the ruleset the template actually ships (verify+security) and contradictedci-cd.md:"id": 14110902, wrong required checks (secrets/validate/build-homepage), nomerge_queue, and a bypass actor that didn't match the shipped.github/Branch Protection Ruleset - Protect Main.json. Replaced with a faithful jinja mirror of that file:verify+security, org-conditionalmerge_queue+OrganizationAdminbypass vs personalRepositoryRolebypass, no hardcoded id. Added a "keep in sync" note.bypass_actors: []section claimed "no one can bypass" while the JSON above it showed a bypass actor — fixed to describe the real org/personal posture.validate-compose/validate-templates/build-homepage) →verify+security, with whatverifyrolls up (project-type aware), consistent withci-cd.md.merge_queueexplanation; removed a strayponderousorg reference.glossary.mdseeded with template-known termsWas a single
TODO:row. Seeded with the toolchain vocabulary the template genuinely defines —verify,security,task/Taskfile, release-please, the<org>-ciGitHub App, devcontainer bot/dev profiles, 1Password Environments, bot vs operator — gated by the relevant copier conditionals, keeping a trailing TODO for project-specific (domain) terms.Scope / conservative bar
Per a conservative specificity bar, docs whose content is genuinely repo-specific were left as well-crafted TODO scaffolds (no invented content):
product/{vision,roadmap,domain},architecture/READMEoverview + diagram,guides/deploying,design-language,DESIGN.md.tests.mdwas left as-is (accurate; its only TODO is genuinely repo-specific coverage expectations).Verification
copier copy --vcs-ref=HEAD; in each, the doc's embedded JSON matches the rendered ruleset file exactly (org →verify+security+merge_queue+OrganizationAdmin; personal →RepositoryRole, no merge_queue), conditionals render cleanly, no[[ ]]/[% %]leftovers, and a leakage grep (ponderous/14110902/validate-compose/etc.) is clean across both trees.task test:templatePASS;task checkand markdownlint clean.docs/architecture/branch-protection.md,docs/glossary.md) re-rendered to match.🤖 Generated with Claude Code