This repository is GitHub's org-level source of default community-health
files. Any repository in the opencharly org that does not ship its own
copy inherits the files here — so a change lands once, not in every repo.
.github/PULL_REQUEST_TEMPLATE.md— the OpenCharly PR template. It elicits the exact evidence the freshpr-validatorvalidator needs: the change-class C11 gate + pasted output, whether the changed code path ran live (which caps the attribution tier), and a full C0–C12 + pillars "state HOW / N/A" checklist.labels/+scripts/labels.sh— the org-wide issue-label taxonomy: 12 closed labels, exactly onecategory:and onetype:per issue, with the sync/audit/classify/apply/retire/render/verify-close/sample/explain tooling and its offline mock-ghtestscripts/labels-test.sh.scripts/org-ruleset.sh— the SINGLE organization-wide owner of BOTH the requiredvalidate / validatecheck AND branch protection. On GitHub Team it creates two org rulesets from ONE payload builder, with identical rules: the first targets every active non-forkmain-default repo, the second the active forks on their default branch (~DEFAULT_BRANCH, sostable/masterare covered). Both carry theworkflowsrule (pointing at this repo's required workflow) and the ordinary branch rules (strict required status check, no force-push, no deletion, no creation). It also enforces the settings that cannot move to the org (allow_auto_merge,delete_branch_on_merge, per-repo settings with no org default).applyenables both rulesets, deletes the redundant per-repo rulesets, and enforces the settings;verifyasserts the whole end state, including the fork set. Its offline mock-ghtest isscripts/org-ruleset_test.sh.scripts/retire-per-repo-dispatchers.sh+.github/workflows/retire-per-repo-dispatchers.yml— the one-shot cutover step that DELETES each repo's redundant.github/workflows/pr-validator.ymldispatcher stub. It runs as a workflow because a delete on a protectedmainneeds a ruleset-bypass commit author — thecharly-auto-mergeApp (the workflow mints that token). Run it BEFOREscripts/org-ruleset.sh apply, which refuses while any dispatcher survives, so the org required workflow is never a second producer of the required check. Idempotent (absent files skipped); its offline mock-ghtest isscripts/retire-per-repo-dispatchers_test.sh..github/workflows/pr-validator.yml— the org-widecharly/pr-validatorgate. A reusable workflow (on: workflow_call) that also self-gates this.githubrepo (on: pull_request). It runs a fresh, independent charly review (the plugin-review plugin, welded into the charly release) as the PR validator, always posts a single PR comment, and sets the requiredcharly/pr-validatorcheck from a deterministicVerdict: PASS|BLOCK(PASS → exit 0 — only for a review that exited 0: a non-zero review exit may carry only a real BLOCK finding, so any other verdict it wrote is discarded (fail-closed) — BLOCK → exit 1, no trustworthy verdict → INCONCLUSIVE + exit 3 — the required check stays RED, so a provider that never answered can neither pass unreviewed code nor be mistaken for a code finding — mixed verdict → exit 2)..github/workflows/org-wide-pr-validator-required.yml— the org-level REQUIRED WORKFLOW the org ruleset names. GitHub runs it on every PR in every targeted repo (definition read once from this repo at the pinned ref); it calls the reusablepr-validator.yml@mainabove, so the gate logic stays one source, and it carries the per-PRconcurrencydedupe +actions: write(the #163 constraint — see the file header). This file replacing the per-repo dispatcher is why no repo carries validator config of its own..github/workflows/candy-validate.yml— the ONE org-level candy/box manifest gate (on: workflow_call). It clonesopencharly/charlyat the org variablevars.CHARLY_VERSION— the single knob — builds the binary, and runscharly box validate, skipping cleanly (green) when a repo has nocharly.yml. Called from a job namedcandywith this workflow's jobvalidate, its check context iscandy / validate. It replaces the class of ~376 hand-rolled per-repo.github/workflows/deploy.ymlcandy gates (298 frozen atv2026.238.1242), whose stale pins failed every schema-versioning-removal PR's OWN repo CI. The pin is mandatory (fail-loud; no bundled fallback). Activation as a required gate is deliberately deferred untilvars.CHARLY_VERSIONnames a release that reads the routing-onlyskill:shape the org's manifests now declare (see "Activation is deliberately deferred" below).scripts/retire-per-repo-candy-gates.sh+.github/workflows/retire-per-repo-candy-gates.yml— the one-shot org cutover that DELETES those stale hand-rolled stubs (theretire-per-repo-dispatchers.shprecedent). It runs as a workflow because a delete on a protectedmainneeds a ruleset-bypass commit author — thecharly-auto-mergeApp (the workflow mints that token). Safety rule: adeploy.ymlis deleted ONLY when its parsed top-levelname:is exactlycandy;name: marketplace,name: docs, and every other real gate are SKIPPED, never touched (the parsed name, not the path, is the gate). Idempotent (absent files skipped); its offline mock-ghtest isscripts/retire-per-repo-candy-gates_test.sh.scripts/strip-config-version.sh+.github/workflows/strip-config-version.yml— the one-shot org cutover that DELETES the schema-versioning-removal cutover's retired authoredversion:stamp from EVERYcharly.ymlin every repo, ROOT OR NESTED (the git TREES API enumerates them; the v1 tool fetched only the root manifest, leaving 206 nestedcharly.ymlfiles across 140 repos stamped — measured 2026-09-28; over the org's 423 activemain-default repos, 396 still carry aversion:line; 394 roots would be stripped). It runs as a workflow because a commit to a protectedmainneeds a ruleset-bypass commit author — thecharly-auto-mergeApp (the workflow mints that token), the same authorization the candy-gate retirement uses; charly.yml is not a workflow file, so only the App'scontents: writeis needed. Because no released charly carrying the removal is available yet (the host leg of the removal is not landed) andcharly migratereformats the whole file (~100 cosmetic lines of churn, incl. trailing-whitespace changes INSIDEdescription:block scalars), the strip is a MINIMAL-DIFF, parser-safe line filter (scripts/_strip-filter.py) that touches ONLY the stamp lines. Safety rule: the predicate is STRUCTURAL — aversion:line is deleted ONLY when it is the indent-0 DOCUMENT stamp or a DIRECT child of acandy:/box:/deploy:entity body (indent 8, and indent 4 in the two 2-space manifests). Every otherversion:is preserved, in particular a LIVEdistro:->version:field (#Distro.version, e.g. charly/charly.yml's embedded default build vocabulary, asserted by charly's own distro_cascade_test.go — an indent-8version:underdistro:, which a bare-indent match would wrongly delete); aversion:line indented 16+ is a fenced YAML example inside adescription: |block scalar and is PRESERVED (9 repos — deleting it would corrupt documentation, e.g. layer-charly-hermes'sversion: 2026.156.1921 # mandatory CalVer). The filter additionally refuses LOUDLY if a matched line ever sits inside a block scalar. Idempotent (nothing to strip → never written);DRY_RUN=1reports what WOULD change (every file, root + nested) without committing; its offline mock-ghtest isscripts/strip-config-version_test.sh(which locks the real layer-charly-hermes charly.yml as a committed fixture inscripts/fixtures/)..github/workflows/workflow-checks.ymlchecks the action runtime pins and executes the pinned Node runtime and artifact upload against GitHub. It also runs the existing owner-script policy tests and governance reconciliation. Validate changes to the review/landing path by runningpr-validator.ymlon the actual PR branch and checking the live GitHub state and complete job log.- Body-only fix after a push — MANUAL (the REST re-run). A REQUIRED workflow acts ONLY on
the default push-driven
pull_requesttypes and IGNORESon.types— MEASURED and confirmed by the GitHub docs ("Troubleshooting rules": ruleset workflows ignorebranches/paths/types; they run only on the default activity typesopened, synchronize, reopened), so a body edit does NOT fire it, even witheditedlisted. A corrected PR body is therefore cleared by explicitly re-running the EXISTING failedcharly/pr-validatorrun:gh api -X POST repos/<owner>/<repo>/actions/runs/<run-id>/rerun— find the run withgh run list --repo <owner>/<repo> --json databaseId,headSha,conclusion. Notgh run rerun: this workflow is defined HERE, and gh (measured on 2.100.0) resolves a run's workflow against the TARGET repo, getsHTTP 404 … /actions/workflows/<id>and exits 1 without re-running anything (opencharly/layer-charly-internals#71). The re-run is a new attempt on the SAMEGITHUB_SHAwith a NEWvalidate / validatecheck run; the merge gate reads the newest check run per name, so a passing re-run supersedes the failure without an empty re-freeze commit (measured on opencharly/docs#142). There is no automaticrerun-label channel any more: thererunlabel + scheduled sweep was RETIRED because a label added for any reason — including a comment — re-ran the gate without a body change.
The candy/box validate gate used to be a hand-rolled per-repo
.github/workflows/deploy.yml (name: candy, job build) that CI-time-cloned
opencharly/charly at a HAND-PINNED tag. ~376 repos carried a copy, 298 frozen at
v2026.238.1242, 16 distinct charly pins (374 at an inline tag — 15 distinct tags —
plus plugin-herdr/pod-herdr at a submodule gitlink v2026.251.0841), nothing advancing
them — so the schema-versioning-removal cutover left every version-strip PR failing its
OWN repo CI.
It is now ONE org-level source:
.github/workflows/candy-validate.yml— the reusable (on: workflow_call) that clones charly at the org variablevars.CHARLY_VERSION(the single knob) and runscharly box validate, skipping cleanly when a repo has nocharly.yml. It is called from a job namedcandy; this workflow's job isvalidate, so the check context iscandy / validate(the name a per-repo caller's job produces). Advancing the gate is onegh variable set CHARLY_VERSION --org opencharly …, never a 376-repo sweep.scripts/retire-per-repo-candy-gates.sh+.github/workflows/retire-per-repo-candy-gates.yml— the one-shot cutover that deletes the stale stubs. Adeploy.ymlis deleted ONLY when its parsed top-levelname:iscandyAND its body carries thecharly box validatesignature;name: marketplace,name: docs, and every other real gate are SKIPPED. Needs the samecharly-auto-mergeApp withcontents: writeandworkflows: write.
$ gh workflow run retire-per-repo-candy-gates.yml # delete the per-repo stubsActivation is deliberately deferred. The reusable is NOT yet named by the org ruleset
as a required workflow, and it has no caller at all — so nothing is red while it waits.
The precondition is ONE engine property: the knob must name a release that READS the
routing-only skill: shape the org's manifests now declare (a skill: node carrying
only its routing fields — name, family, owner, triggers). An engine whose plugin harness
predates the spec#247 relaxation REJECTS that shape with plugin kind:skill: plugin_input fails #SkillInput: #SkillInput.description: incomplete value !="", so a required gate at
such a pin would redden every repo declaring it.
Measured 2026-10-27, the knob's value of that day (v2026.278.0912) was such a pin:
that release rejects a pristine shipping manifest declaring that shape, and a release
carrying the relaxed harness (plugin-harness-kind v0.2026288.1214) accepts the same
content. The knob must therefore name a release whose plugin-harness-kind is
v0.2026288.1214 or later.
The OTHER precondition — that the pin names a release carrying the schema-versioning
removal, so the engine no longer demands the retired version: stamp — is DISCHARGED
(measured 2026-10-27: a stamp-less manifest validates with "0 warnings, 0 errors"; the
issue that carried it, opencharly/.github#162, is closed). Only the routing-only shape
was outstanding at that reading, and the knob is one, so the remedy is one variable
change:
$ gh variable set CHARLY_VERSION --org opencharly \
--body <a release whose plugin-harness-kind is v0.2026288.1214 or later> \
--visibility allvars.CHARLY_VERSION is also the org PR-validator's engine pin, so that one change moves
the review engine for every repo as well — make it deliberately. Once the pin names such
a release, the reusable may be named org-wide exactly as the validator is (a workflows
ruleset rule pointing at a thin candy-validate-required.yml caller, or per-repo
callers). Until then it is available for explicit opt-in and the retirement of the stale
pins stands on its own (the deadlock is removed whether or not a new gate is required).
Future org-wide defaults (issue templates, CONTRIBUTING.md, SECURITY.md) belong
here too — one source, inherited everywhere.
It is not. The gate is a single source in this repo — the ONE org ruleset
(scripts/org-ruleset.sh) names the required workflow and requires the
validate / validate check for every repo, so no repo installs anything. The old
per-repo .github/workflows/pr-validator.yml dispatcher stub existed only because
org required-workflows need GitHub Team (the org was on the free plan when that
pattern began); the org ruleset now replaces it, and
.github/workflows/retire-per-repo-dispatchers.yml deletes the stub in every repo.
The one-time cutover order is:
$ gh workflow run retire-per-repo-dispatchers.yml # delete the per-repo stubs first
$ scripts/org-ruleset.sh apply # then enable the org ruleset
$ scripts/org-ruleset.sh verify # assert the whole end stateThe required workflow's validate job gates on
github.event.pull_request.head.repo.full_name == github.repository — the head
repo is a different repository than the base. It runs for every same-repo PR,
including PRs in a first-party fork repo (the org vendors several upstreams as
forks: dsh-github, crabbox, the pi-* family), and skips only a genuine
external contribution (a head repo that is a different repo — whose fork
secrets are unavailable and whose code is untrusted). A null head repo (a deleted
fork) resolves to the empty string, which is != github.repository, so the job
skips — the safe default.
This predicate is load-bearing. The retired head.repo.fork == false test asked
"is the head repo itself a fork?", which is true for every PR in a fork repo, so
it skipped the org's own PRs. Combined with the ruleset's REQUIRED
validate / validate check, that made such a PR un-mergeable — the required check was
never produced (measured 2026-10-07, opencharly/dsh-github#2: dsh-github main
carries the ruleset while every pre-existing fork does not, and gh pr merge reports
Required status check "validate / validate" is expected). The predicate is checked by the same_repo_gate row in
scripts/governance-claims.tsv.
First-party forks are gated too. A second org ruleset (same payload builder, same
rules including the workflows rule) targets the active forks on ~DEFAULT_BRANCH, so a
fork's validate / validate is produced by the ORG's required workflow — no per-fork
validator caller is copied. The fork's ONLY per-repo file is the tag-on-merge caller,
installed and reconciled by this repo. Because the workflows rule blocks a direct push,
a user-token gh repo sync fails; mirror sync runs through
.github/workflows/sync-forks.yml with the charly-auto-merge App token (the ruleset
bypass actor). A fork created after the last apply is absent from the fork ruleset's
include list, and verify fails naming it until the next apply. The onboarding
checklist is in /charly-internals:repo-setup.
The org ruleset carries the creation rule on refs/heads/main, so a brand-new
repo cannot create its first main by any operator path — git push, the
contents API, repo auto_init, and branch rename are all rejected (measured:
GH013 Cannot create ref due to creations being restricted on a push; the contents
API returns 409 Cannot create ref due to creations being restricted on a repo with
no refs and 404 Branch main not found on a repo with other refs but no main;
rename 422 repository rules do not permit renaming branch ... to 'main').
The ruleset's only bypass actor is the charly-auto-merge App — and without a
main the required workflow cannot run, so the required check can never be
produced (a deadlock).
Bootstrap a new repo's main with the App-token workflow:
$ gh workflow run bootstrap-repo-main.yml -f repos="my-new-repo" # in opencharly/.github
$ gh api --method PATCH repos/opencharly/my-new-repo -f default_branch=mainscripts/bootstrap-repo-main.sh (run by
.github/workflows/bootstrap-repo-main.yml) creates refs/heads/main from the
repo's current default-branch HEAD via the git-data refs API — the API with no
branch-must-exist precondition (the contents API requires the branch to already
exist). It never moves an existing main and skips a repo with nothing to seed
from, so it is safe and idempotent. The ref creation needs only the App's
contents: write bypass; setting the repo's default branch is a repo-settings
change the App cannot make (403 Resource not accessible by integration), so that
final step uses the operator's admin token.
The org targets every active non-fork main-default repo with ruleset A
(discover_repos in scripts/lib-org.sh) and every active fork with ruleset B
(discover_forks), so most of the gate is inherited with nothing copied into the
repo:
| Concern | Automatic (the org / this repo) | The repo must add |
|---|---|---|
PR validation (validate / validate) |
The org ruleset's workflows rule runs org-wide-pr-validator-required.yml (definition here) → the reusable pr-validator.yml. No per-repo file. |
nothing |
| Branch protection (no force-push / delete / create; strict required check) | The ONE org ruleset. | nothing |
| Native auto-merge (squash) | Armed by the validator on PASS; needs the per-repo setting allow_auto_merge=true (enforced by scripts/org-ruleset.sh apply). |
nothing (the script sets it) |
| Remote branch cleanup at merge | delete_branch_on_merge=true (enforced by the same script). |
nothing |
CalVer tag + CHANGELOG/<CalVer>.md |
The org reusable tag-on-merge.yml. |
.github/workflows/tag-on-merge.yml — the per-repo caller (fires on workflow_run of charly/pr-validator + push to main) |
Candy/box manifest validation (candy / validate) |
The org reusable candy-validate.yml (clones charly at vars.CHARLY_VERSION; skips repos with no charly.yml). No per-repo file. |
nothing (an optional thin caller if a repo wants the check to run outside the org path) |
| The repo's own build/deploy CI (a real gate) | — | the repo's .github/workflows/ (e.g. deploy.yml where it is NOT the hand-rolled candy stub) |
Fork: the same validate / validate and branch rules |
Ruleset B for the active forks (~DEFAULT_BRANCH), the SAME required workflow. No per-fork validator caller. |
only .github/workflows/tag-on-merge.yml, installed by this repo's scope=forks reconcile; sync from upstream with sync-forks.yml |
Checklist for a brand-new repo:
- Create
opencharly/<name>(non-fork). Bootstrapmainwithbootstrap-repo-main.yml, then set the default branch (above). - Add
.github/workflows/tag-on-merge.yml(copy an existing repo's caller) — WITHOUT it the repo merges via the org validator but never gets a CalVer tag or a CHANGELOG. Add the repo's own CI (deploy.yml) too. - Run
scripts/org-ruleset.sh applysoallow_auto_mergeanddelete_branch_on_mergeare enforced for the new repo (the org ruleset itself covers it automatically once it is active + non-fork +main-default). - Land the first change via a PR; the org validator is the gate (never a direct push).
- Add it to the umbrella as a submodule and bump the pin via
charly task sync+ PR.
Excluded by design — excluded from the ORG-WIDE AUTOMATIC coverage only. Exclusion itself is not a prohibition on landing, but these categories are NOT landing targets:
- archived repos —
pod-immich-ml: read-only, so GitHub rejects pushes and new PRs; - vendored upstreams on a non-
maindefault —pixelflux→av1: consumed as a pin, not landed against; - artifact-branch sinks —
omarchy-eval-artifacts→runs: a branch that receives published output, not a landing target; - archived forks —
org-ruleset.sh verifynames any it finds; they receive no gate because GitHub rejects pushes and new PRs.
A first-party fork is not in this set: it is gated by ruleset B and, if it should mint
CalVer, carries the tag-on-merge caller this repo installs. A repo that should have the
full ORG-WIDE coverage must be active and, for ruleset A, default to main.
Measured gap. layer-nerdctl and plugin-nerdctl were created with no .github
directory at all (so no tag-on-merge.yml caller): they validate via the org ruleset,
but the tag-on-merge mechanism cannot have minted their two v2026.266.* tags (the caller
it fires through is absent), so those tags are out-of-band and future merges will not tag.
Adding the caller is the fix.
Nothing is hardcoded and no credential is committed. The workflow reads
provider/model/endpoint/key from the GitHub environment and passes them to the
charly review step as the AI_REVIEW_* env (provider / model / base_url / api_key). Set these as org-level variables/secret (Settings → Secrets and variables → Actions → New repository secret / New variable, org level, visibility: all):
| Name | Kind | Default | Purpose |
|---|---|---|---|
AI_REVIEW_PROVIDER |
variable | ollama |
LLM provider name |
AI_REVIEW_BASE_URL |
variable | https://ollama.com/v1 |
Provider base URL override (empty = built-in) |
AI_REVIEW_MODEL |
variable | deepseek-v4.1-flash |
Exact model ID in the provider's catalog |
AI_REVIEW_API_KEY |
secret | — | Provider API key (never committed) |
The model id is passed verbatim to the provider's chat-completions endpoint
(deepseek-v4.1-flash is an Ollama Cloud model id, served at https://ollama.com/v1 —
the same catalog as the local ollama deepseek-v4.1-flash:cloud pointer); base_url
selects the endpoint; no models.json is written and no model catalog is embedded. The
gate is charly-native: plugin-review is welded into the charly release, driven by
charly review --plan review-plan.yml (plan + prompt live in
opencharly/action-review@main — the validator spec's single config source, updated without
touching the workflow). The gate-mechanism version surface is the pinned charly release
(vars.CHARLY_VERSION) — a mandatory org variable: the workflow has no bundled
fallback. If the pin is unset or set with visibility narrower than all (invisible to
this public repo), the validator fails loudly (exit 3, the INCONCLUSIVE class) with
the recovery command rather than silently downgrading to an older engine. Set it with:
gh variable set CHARLY_VERSION --org opencharly --body <tag> --visibility all
Bump it deliberately per release.
A pin that IS set can still be unobtainable, so the gate measures the fetch and names the
class it got instead of guessing at one. asset unreachable — <url> answered HTTP <status>
means GitHub's download path failed to serve the asset: the pin and the release are both
intact, so the remedy is a re-run, and moving the pin cannot help. asset absent means
the published release does not serve the asset (re-upload it, or move the pin). A tag with
no published release keeps the older engine pin unresolvable class. Measured 2026-11-09:
the download path answers 504 with a 92-byte gateway page for individual assets while
the release API reports every asset uploaded at its full size — so the API cannot see the
condition at all, and only a real fetch can. The same bytes answer over the API asset route
(GET /repos/opencharly/charly/releases/assets/<id> with Accept: application/octet-stream);
the gate deliberately does NOT fall back to that route, because a silent second fetch would
hide the class instead of naming it (C5). It is the operator's diagnostic when the path is
down.
This gate is a static diff + thread review run by a fresh independent validator
(charly review, the plugin-review plugin welded into the charly release). It runs
read-only GitHub tools — get_pr_diff, get_pr_commits, get_pr_thread (the CURRENT
live body is authoritative + prior comments), get_pr_meta — and no shell. For every claim
it verifies it either (a) derives it from the diff/commits/thread, or (b)
cross-checks the author's pasted evidence for internal consistency and states
an explicit tool-limited disposition ("could not re-run from this environment")
where independent re-execution would be required. It never fabricates a run and
never lets a missing re-run pass on the author's word alone.
Consequence for runtime / Go / schema classes: the gate validates pasted
bed/regen/lint output statically — it cannot independently re-run it. Deep
independent re-execution of runtime-class evidence remains the full shell-enabled
fresh-evaluator agent's job in the charly repo; this gate is the org-wide first
line. Authors must paste complete, self-consistent, fraud-free evidence. No more
is overclaimed.
On the PR that first installs this gate, the gate's end-to-end green check is not observable before the gate itself merges (a self-install). The validator guidance accordingly never treats that as a blocking finding: it verifies the mechanism statically, accepts an explicit operator sign-off, and passes unless a genuinely fixable, non-self-blocking defect remains. This is the only instance where the gate's own check is not independently green.
Every PR must carry a CHANGELOG placeholder renamed to the merge-time
CalVer. The validator performs that rename with a bot token, not
GITHUB_TOKEN: GitHub requires approval for runs triggered by
GITHUB_TOKEN pushes, and no event exists that can auto-approve them.
A bot-token push re-triggers pull_request: synchronize normally.
Setup (already done org-wide):
- GitHub App
charly-auto-merge(id 4675576), installed onopencharlywith All-repositories access. It is ALSO the ruleset bypass actor, so it additionally needs theworkflows: writepermission (Repository permissions → Workflows: Read and write) for the org cutover's dispatcher deletions (.github/workflows/*), on top ofcontents: write. - Org secrets
CHARLY_AUTO_MERGE_APP_ID+CHARLY_AUTO_MERGE_PRIVATE_KEY. Fallback:CHARLY_BOT_TOKEN(fine-grained PAT, Contents: write + Workflows: write).
The rename step hard-fails when neither is configured, so a missing secret never silently degrades to the approval-required loop.
Every issue in the org carries exactly one category: and exactly one type:
from the closed sets in labels/taxonomy.json. The same 12 labels exist in every
non-archived repo; the taxonomy is generic (no repo or product names), and there is
no fallback value: an issue that cannot be decided is improved or split.
| Axis | Values |
|---|---|
category |
runtime, delivery, verification, experience, governance, hygiene |
type |
fix, feat, design, spec, docs, chore |
labels/category-rules.json records the generic path/action evidence the
classifier uses. It contains no repository names and no repo→category defaults:
every category is available in every repository, and a new or future repository needs
no rule change. A new repository inherits the 12 labels from the bootstrap/label-sync;
no per-repo label config is needed.
scripts/labels.sh owns sync, audit, classify, apply, retire, render, verify-close,
sample and explain; its offline mock-gh test is scripts/labels-test.sh.
.github/workflows/label-sync.yml provisions the labels (dry-run by default);
.github/workflows/label-audit.yml reports missing, multi-value, forbidden and
unknown labels daily (report-only until the backfill). .github/ISSUE_TEMPLATE/issue.yml
is the org-default issue form: it requires Category, Type, Remedy/files and the cited
decision/rule, applies no static labels, and is inherited by every repository without
its own template. The full yes/no tests,
precedence rules and the design/rulebook violation table live in the umbrella's
/charly-internals:git-workflow (references/issue-labels.md).
The OpenCharly CI fleet is charly-deployed and org-scoped, and it registers two labels:
| Label | Selected by | Notes |
|---|---|---|
opencharly-ubuntu |
vars.CI_RUNNER_LABEL (value set org-wide, visibility all) and the Docker jobs' vars.CI_DOCKER_RUNNER_LABEL |
the Ubuntu + Docker pool; the one a workflow should name |
opencharly |
vars.REVIEW_RUNNER_LABEL |
the review fleet (validator); also present on the Ubuntu pool |
Consequences a repo author must know:
- A hosted label is NOT captured. A job that says
runs-on: ubuntu-latestruns on GitHub-hosted runners even though a self-hosted runner carries that label — measured: everyubuntu-latestjob stayed on hosted while the fleet was idle. A repo moves to the fleet by naming the variable or the fleet label; nothing on the runner side can redirect a hosted label. - The variable is the no-edit path.
runs-on: ${{ vars.CI_RUNNER_LABEL || 'opencharly' }}resolves toopencharly-ubuntufor every repo because the org variable's visibility isall; a repo that hardcodesubuntu-latestneeds a one-line edit. - The blast radius is org-wide by design. The fleet serves every repository in the org. Narrow it with a runner group and a repository selection if that trade is ever no longer wanted.
- Not served:
windows-latest,xcode-27(no Windows/macOS capacity exists) andblacksmith-*(those workflows depend on Blacksmith's own actions). A job on one of those labels stays unsupported; it is never faked on Linux. - Repo-scoped instead? A single project that should not share the fleet registers its
own runner with
RUNNER_URL=https://github.com/<owner>/<repo>— see/charly-distros:github-runner-ubuntu'scharly-register-runners.
| Workload | Runner | Why |
|---|---|---|
charly/pr-validator |
self-hosted (vars.REVIEW_RUNNER_LABEL) |
already moved; needs only curl + the charly release |
tag-on-merge (every repo) |
self-hosted (vars.CI_RUNNER_LABEL) |
GitHub Actions + bash only — moved, one edit covers every caller |
| repo CI that opts in | self-hosted (vars.CI_RUNNER_LABEL) |
the repo's own workflows use the variable idiom |
Windows jobs (windows-latest) |
GitHub-hosted | no Windows capacity exists |
macOS jobs (xcode-27) |
GitHub-hosted | no macOS capacity exists |
| Blacksmith testboxes | GitHub-hosted / Blacksmith | the useblacksmith/* actions need Blacksmith's service |
candy-validate |
GitHub-hosted (for now) | builds charly with Go on every call; move it once the fleet has headroom, not before |
A hosted label cannot be captured by a self-hosted runner. A job that says
runs-on: ubuntu-latest (or ubuntu-22.04/ubuntu-24.04) is scheduled on GitHub-hosted
runners even when a self-hosted runner carries the same label — measured: a dispatched CI
run put every ubuntu-latest job on hosted runners while the fleet stayed idle. Vendored
forks and repos with those literal labels need the per-workflow edit to the variable idiom;
nothing on the runner side can redirect them.
A fork is gated by the SAME org mechanism as every other repo: ruleset B
(scripts/org-ruleset.sh) targets the active forks on ~DEFAULT_BRANCH and carries the
workflows rule naming this repo's required workflow, so validate / validate is produced
by the org's own workflow. No pr-validator.yml is copied into a fork. A surviving one
is a duplicate producer; scripts/retire-per-repo-dispatchers.sh (SCOPE=forks) deletes it.
The one per-fork file is the tag-on-merge caller: GitHub has no org-level post-merge
mechanism, so .github/workflows/tag-on-merge.yml is installed and kept canonical by
scripts/reconcile-tag-on-merge-callers.sh (SCOPE=forks) — which also INSTALLS it where
absent, and preserves a repo's SHA-pin policy with the current opencharly/.github sha.
Because the workflows rule blocks direct pushes, a user-token gh repo sync fails on a
gated fork. Sync through .github/workflows/sync-forks.yml, which uses the charly-auto-merge
App token — the ruleset's bypass actor. It never forces; a conflict is reported.
Branch protection AND the required validator used to be applied per repo (a branch
ruleset + a copied .github/workflows/pr-validator.yml dispatcher). On GitHub Team
they are now TWO organization rulesets from ONE payload builder
(scripts/org-ruleset.sh): ruleset A for active non-fork main-default repos, ruleset B
for the active forks on ~DEFAULT_BRANCH. Both carry the workflows rule (naming
org-wide-pr-validator-required.yml here) and the branch rules (strict required
validate / validate, no force-push/deletion/create). Cutover order: retire the per-repo
validator stubs for scope=targets and scope=forks, then
scripts/org-ruleset.sh apply, then scripts/org-ruleset.sh verify.