Skip to content

docs: make hooks first and define where CI runs - #9

Merged
deathpie merged 1 commit into
mainfrom
docs/core-ci-strategy
Nov 24, 2026
Merged

deathpie merged 1 commit into
mainfrom
docs/core-ci-strategy

Conversation

@deathpie

Copy link
Copy Markdown
Owner

What

Publishes the updated shared core standard and extends the fleet audit for it.

  • standards/core.md is copied verbatim from the shared source. It adds C5.7
    "Hooks first, CI confirms" and C5.8 "Where CI runs", and clarifies C5.6 that a
    self-hosted Linux runner counts as a Linux runner. The file stays byte-identical
    across the five owner .github repositories.
  • scripts/fleet-audit.ts gains C5.7 and C5.8 and stays read-only; every existing
    check and its output is unchanged. C5.7 reads the required pull-request contexts
    (ruleset required checks for a public repository, the pull-request checks
    workflow's jobs for a private one) and reports a context that is not a hook
    recipe (fmt/fmt-check, lint, typecheck, test, secrets/privacy,
    hooks) unless standards/owner.md names it under ## CI-only required checks.
    C5.8 reports an organization's private repository on GitHub-hosted runners
    (excepted by a C5.8 row in docs/exceptions.md) and a public repository on a
    self-hosted runner (never excepted); a personal account's private repositories
    are not flagged.
  • standards/owner.md gains ## CI-only required checks, empty (None.) here.

Findings the new audit reports

just fleet-audit --owner deathpie reports the single check context as
C5.7 required check check is not a hook recipe in .github, nsfw-model-testing,
sd-card-tools and wow-forever-settings. That is the drift C5.7 names; splitting
check into the hook-recipe jobs is follow-up work. There is no C5.8 finding: a
personal account's private repositories use GitHub-hosted runners.

Verification

  • just check
  • just fleet-audit --owner deathpie

## What

Publishes core C5.7 "Hooks first, CI confirms" and C5.8 "Where CI runs",
and clarifies C5.6 that a self-hosted Linux runner counts as a Linux
runner. `standards/core.md` stays byte-identical across the five owner
`.github` repositories.

Extends `scripts/fleet-audit.ts` with the two rules, still read-only:

- C5.7 lists the repository's required pull-request contexts (ruleset
  required checks for a public repository, the pull-request checks
  workflow's jobs for a private one) and reports a context that is not a
  hook recipe (`fmt`, `fmt-check`, `lint`, `typecheck`, `test`, `secrets`,
  `privacy`, `hooks`) unless `standards/owner.md` names it under
  `## CI-only required checks`.
- C5.8 reports an organization's private repository that runs on
  GitHub-hosted runners, excepted by a C5.8 row in `docs/exceptions.md`,
  and a public repository that runs on a self-hosted runner, never
  excepted. A personal account's private repositories are not flagged.

Adds the `## CI-only required checks` section to `standards/owner.md`,
empty here. The audit now reports the single `check` context as a C5.7
gap until it is split into the hook recipes.

## Verification

- `just check`
- `just fleet-audit --owner deathpie`
@deathpie
deathpie merged commit df26109 into main Nov 24, 2026
5 checks passed
@deathpie
deathpie deleted the docs/core-ci-strategy branch November 24, 2026 01:15
deathpie added a commit that referenced this pull request Nov 24, 2026
## What

Follow-up to #9. `scripts/fleet-audit.ts` read `standards/owner.md` from
the
local checkout, so a full-fleet run from one clone applied that clone's
owner
standard to every owner. C5.7 now fetches `standards/owner.md` from the
audited
owner's `.github` repository, once per owner and cached, so each owner's
`## CI-only required checks` section applies when `just fleet-audit`
runs from a
single clone.

Read-only as before; no other behaviour changes, and the file stays
byte-identical across the five owner `.github` repositories.

## Verification

- `just check`
- `just fleet-audit --owner simpsonm09-projects` from the `deathpie`
clone
- `just fleet-audit --owner deathpie`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant