How a zachthedev repository is set up, whatever stack it is in. A repository is aligned when every row in the
checklist holds, or the repository records where it differs and why.
zachthedev is designed as an organization. Nothing here depends on one person's machine or account configuration. Converting the account keeps every workflow call, preset and default file, and Apps lists what else a conversion needs.
A row is hard or overridable. A hard row holds in every repository. An overridable row can differ where the difference is deliberate and recorded at the drift site. The drift site is a comment in the file where the deviation is made, beside the deviating line. Where that file has no comment syntax, the row names the file that carries the record. A hard row can carry a setting the repository chooses, and its section names it.
Every rule targets the finished repository, and a gap a repository cannot close yet is a declaration in its gate that fails once the gap closes.
The kickstart templates are the source of truth for files. This handbook states the rules. Each kickstart holds the files that satisfy them for its stack.
A well-known guardrail over a hand-rolled mechanism. A hand-rolled check survives only where it closes a big gap no tool closes, at low maintenance. The repository names the gap.
A stack leans on its native abilities over generalized tooling. A tool the stack owns is pinned and run the stack's way. Only a tool no stack owns goes through a cross-stack pin.
No version is written in this handbook. The principle is the latest version of everything that is compatible together and past the publish cooldown. Stable by default. Where an API is mostly stable, take the newer version: migrating later costs more than changing now.
| Row | Override | The rule |
|---|---|---|
| Identity | allowed | MIT by default, one copyright line, the legal name, the first publication year, never updated |
| Authorship | none | the legal name only where a field is legally operative, ZachTheDev everywhere a user reads |
| Names | none | zach.tools by ecosystem family, one naming form per ecosystem |
| Branch rules | none | two default-branch rulesets: squash pull requests, then the checks and code scanning no merge bypasses |
| Actions | none | read-only default token, Actions cannot approve pull requests, SHA pinning required |
| Environments | none | a scope per credential, a tier per deployment, an approval per reviewed publish, each with a policy |
| Secrets | none | a public identifier is a variable, a private identifier or a credential is a secret, held where used |
| Apps | none | release pull requests, tags and dependency updates run as GitHub Apps, never as a user |
| Tags | none | one ruleset over every tag restricting creation, update and deletion, the releaser app its bypass |
| Dependabot | none | alerts on everywhere, security updates on in rust-crates, rust-app and csharp-installer alone |
| Board | allowed | one project per repository, copied from the owner's template, linked, its workflows on |
| Gate | none | one command per stack, run locally and called by CI, named in the Adapters table |
| Workflows | none | every action pinned by SHA with a version comment, linted and audited in CI |
| CodeQL | none | a committed workflow, security-extended, over the repository's languages plus actions |
| Commits | none | conventional commits typed by their effect on users, scopes declared in a file, linted in a hook and CI |
| Hooks | none | lefthook, commit-msg lints the message, pre-push runs the gate or its quick form |
| Formatting | none | Prettier from one deviations-only config at one exact version, taplo for every TOML file |
| Waivers | none | an inline waiver in code names its exact rule and a reason, and the gate refuses what no tool checks |
| Updates | none | self-hosted Renovate from the shared presets, a three-day cooldown, one bot opening pull requests |
| Advisories | none | block on what a change introduces, never on what the world discovers about it |
| Tools | none | stack tools pinned natively, cross-stack tools through mise, each tool's tier stated |
| Releases | none | release-please, release-plz for Rust, user-facing changes alone, a draft, a publish job |
| Versioning | none | Semantic Versioning, the release tool owning the number, v tags, a break below 1.0.0 bumping the minor |
| Labels | allowed | the kickstart's label set, every label defined before a tool applies it |
| Authoring | none | template output first, library over hand-rolled code, no fact restated in prose |
A stack is the language a repository is written in: Bun, Go, Rust or C#. A kind is the stack plus what the
repository ships. A repository takes the one kind whose row describes it. A template repository adds template
to its kind.
| Kind | Ships |
|---|---|
bun-service |
a deployed service, such as a Cloudflare Worker |
bun-tooling |
nothing: tooling, scripts, a template |
rust-crates |
crates on crates.io and a built artifact |
rust-app |
a built artifact and no crate |
csharp-installer |
an installer, under central package management |
go-cli |
a binary |
template |
a layer added to a template repository's kind |
The gate is the one local command per stack that CI calls (Gate). Nothing else is called a gate. A check is one thing the gate or CI verifies. A required check is named in the branch ruleset by its check-run name.
A workflow is a file under .github/workflows/. A job is one entry under a workflow's jobs:. A reusable
workflow in zachthedev/.github is called by a job with uses:, and the job carries the workflow's name.
Every boilerplate file a repository carries. The kickstart ships each one. The form says how much is shared. "Identical" is byte-identical in every repository, so any diff is a deviation. "Shape" is one structure with slots the marker names. "Own" is the repository's, and only its existence is shared. "Generated" is written by a command. A row that a section owns names that section.
| File | Form | Rule or section |
|---|---|---|
LICENSE |
shape | Identity |
README.md |
own | what it is, how to get it in one line, the documentation table, the gate command, no copy of a printed list |
CONTRIBUTING.md |
shape | Setup, Safety, Running it, Where code goes, Code, Tests, The gate, Commit messages, Dependencies, Releases, Troubleshooting, What never happens |
SECURITY.md |
shape | Security, Reporting, What is supported, In scope, Out of scope, After a report, hey@ |
CHANGELOG.md |
own | written by the release tool alone, one per crate under release-plz |
docs/install.md |
shape | rust-crates, rust-app, csharp-installer, go-cli; Requirements, Install, Check the download, Upgrade, Uninstall |
docs/deploy.md |
shape | bun-service; Your own deployment, Releasing deploys, Operating it |
docs/usage.md |
own | every kind but bun-tooling; what --help and the README do not carry |
AGENTS.md |
shape | Read first, Verify, Never, Deviations, Where the rest is; substance for the session, a link for the tree |
CLAUDE.md |
identical | one line, @AGENTS.md, below |
.claude/settings.json |
shape | git status alone allowed, the --output and --no-index denies, plus what the repository adds, recorded in CONTRIBUTING.md |
.gitattributes |
shape | * text=auto eol=lf, so a hook or script runs on every host, plus the stack's binary patterns |
.gitignore |
shape | Authoring |
.editorconfig |
shape | Formatting |
.prettierrc |
identical | Formatting |
.prettierignore |
own | Formatting; the release tool's output: CHANGELOG.md under both tools, .release-please-manifest.json under release-please |
.taplo.toml |
shape | Formatting; excludes node_modules/**, .claude/worktrees/** and the stack's build output |
package.json, bun.lock, bunfig.toml |
shape | commitlint, yaml, Prettier and lefthook pinned, packageManager set, the cooldown under Updates. Go pins lefthook in go.mod |
eslint.config.ts |
shape | bun-service and bun-tooling alone, Gate |
tsconfig.json |
shape | bun-service and bun-tooling alone, the root TypeScript project at a path scripts/expected.ts lists, Gate |
scripts/tsconfig.json |
shape | bun-service and bun-tooling alone, the gate's own project, so the root one never reaches the gate's imports, Gate |
commitlint.config.js |
identical | Commits |
.github.amrom.workers.devmit-scopes.json |
own | Commits |
lefthook.yml |
shape | Hooks |
mise.toml, mise.lock |
shape | Tools |
mise.semver.toml, mise.semver.lock |
shape | rust-crates and rust-app alone, Releases |
.cargo/config.toml |
shape | rust-crates and rust-app alone, the xtask alias under Gate, the cooldown under Updates |
rustfmt.toml |
identical | rust-crates and rust-app alone, Gate |
clippy.toml |
identical | rust-crates and rust-app alone, comments only, so clippy stops its search at the root (Gate) |
deny.toml |
identical | rust-crates and rust-app alone, Gate and Advisories |
.github/CODEOWNERS |
identical | one comment line plus * @zachthedev |
.github/PULL_REQUEST_TEMPLATE.md |
shape | |
.github/ISSUE_TEMPLATE/config.yml |
shape | blank_issues_enabled: false plus the contact links |
.github/ISSUE_TEMPLATE/*.yml |
own | the forms, each naming its labels |
.github/renovate.json |
shape | Updates |
.github/dependabot.yml |
shape | rust-crates, rust-app and csharp-installer alone, Dependabot |
.github/zizmor.yml |
shape | unpinned-uses at hash-pin, dependabot-cooldown at three days in the kinds with dependabot.yml (Dependabot), the known-vulnerable-actions allow list (Advisories) |
.github/workflows/ci.yml |
shape | Workflows |
.github/workflows/cd.yml |
shape | Workflows |
.github/workflows/codeql.yml |
shape | CodeQL |
.github/workflows/deps.yml |
identical | Updates |
.github/workflows/audit.yml |
shape | Advisories |
release-please-config.json, its manifest |
shape | every stack but Rust, Releases |
release-plz.toml |
shape | Rust, Releases |
.worktreeinclude |
shape | the gitignored files a new worktree is seeded with |
MARKERS.md |
generated | Kickstarts |
CODE_OF_CONDUCT.md,SUPPORT.mdandFUNDING.ymllive once inzachthedev/.github, which GitHub serves as every repository's default. A repository carries its own only to differ.- Every document is written for a human contributor first:
README.md,CONTRIBUTING.md,SECURITY.md, and anything underdocs/. Links between them are relative markdown links, clickable on github.com. CONTRIBUTING.mdreads top to bottom as learning to contribute, and each topic lives in one section. Setup holds the prerequisites, the first run, the hooks and the frozen install in each worktree. Running it holds how to run the repository locally and its generated files. Code holds style and waivers. Tests includes the tests that need a real service. What never happens holds the tree rulesAGENTS.mdlinks.- Safety says what a contributor does to stay safe locally. A pull request's diff is read before anything runs
on its branch, because the branch supplies the install, the hooks and the gate. The section names what reaches
the tools from the contributor's own environment, and says hooks are not a control:
BUN_OPTIONSstays unset. A--preloadin it runs a module in each Bun start that runs code: a file,bun testorbun -e, one an install script starts included. It runs none inbun installitself, inbun run auditor in abun x --bun --no-installstart. Safety names the starts in that kind that run one, never a row the gate withholds it from. A tool that starts Bun processes of its own, such as wrangler or vitest, passes it andBUN_INSPECT_PRELOADon to them, and Safety names each such tool the kind runs.- The
BUN_INSPECTnames stay unset.BUN_INSPECT_PRELOADruns a module in each start where a--preloadinBUN_OPTIONSruns one. The gate withholdsBUN_OPTIONSalone, so it also runs in each Bun the gate starts, such as abun testrow or the ShellCheck stand-in. - A top-level
bunfig.tomlpreload runs underbun xtoo. bun xignores--no-env-file, so a personal env file reaches the JS tools.
- Troubleshooting covers a local run that fails or differs from CI: a stale install, the install after every
pull and every branch switch, a frozen install that leaves a package
bun.lockdropped in place, the other copybun xmay run, a partial or copied install that runs a parent directory's binary, env files, a proxy that catches loopback, and a case variant or an 8.3 short name that merges two tracked paths on a case-insensitive checkout (Workflows). - A cross-reference stands wherever an agent that skims would otherwise miss an item. Setup points at the Safety items it touches, and The gate points at Troubleshooting for a local and CI mismatch.
AGENTS.mdlives at the repository root under the vendor-neutral name, so every vendor's agent reads one editable file. It writes out what an agent alone needs: the gate commands and the rules about what an agent runs, reads or changes in a session. It reaches everything about the tree by a relative link. A session rule is written with its reason. A tree rule is one imperative line with a link toCONTRIBUTING.md#what-never-happensand no reason.- Its Read first section is the same base list in every repository, in order:
README.md,CONTRIBUTING.mdandSECURITY.md, then whichever ofdocs/install.md,docs/deploy.mdanddocs/usage.mdthe repository has, in that order. A repository may add to the list after those. AGENTS.mdnever references this handbook. Agents do not read it, and it is the owner's alignment tool.- No contributor document,
README.md,CONTRIBUTING.md,SECURITY.md,AGENTS.mdor a file underdocs/, describes a path only the owner can take, such asgh pr merge --admin. That merge works only while the owner is the sole approver, and contributors will approve the owner's pull requests later. This handbook is the owner's alignment tool, not a contributor document, so its owner-process text stays. CLAUDE.mdis one line,@AGENTS.md. Claude Code expands the import, so the same file is read once in every session, on every platform.docs/is flat, apart fromdocs/images/for the images a document shows. A kind adds the files its Files rows name. Any other file underdocs/is the repository's own.README.mdindexes every document. A workspace member's own documentation sits beside it and the index reaches it.- A YAML file takes
.yml. GitHub documents that spelling for every file it reads. It reads the issue chooser's configuration only asconfig.yml, so a.yamlrule cannot hold everywhere. A file whose tool reads only.yamlkeeps the tool's name. .claude/holds the settings file alone until a shared dotfiles repository assembles the owner's rules, hooks and skills into every repository.- The shared
.claude/settings.jsonallowsgit statusalone. A permission rule is a text match that quoting evades, so a deny on an argument never makes a broader allow safe. An allow goes instead. - Its denies on
--outputhold, since git rejects each abbreviation of the flag. A deny on--no-indexstops the flag alone.git diff -- ../outside.txt a.txtreads a file outside the repository with no--no-indexin the command, because git takes a path outside the work tree as that mode. The permission prompt on everygitcommand butgit statusis the control.
The gate command per stack, the pins the stack owns, and the kickstart that holds the stack's files.
| Stack | Kinds | Gate | Stack-owned pins | Kickstart |
|---|---|---|---|---|
| Bun | bun-service, bun-tooling |
bun run check |
package.json packageManager, bunfig.toml |
kickstart |
| Go | go-cli |
task check |
go.mod toolchain and tool directives |
kickstart-go |
| Rust | rust-crates, rust-app |
cargo xtask check |
rust-toolchain.toml, [workspace.dependencies], .cargo/config.toml |
kickstart-rust |
| C# | csharp-installer |
dotnet cake.cs |
Directory.Packages.props, global.json, dotnet-tools.json |
kickstart-csharp |
A repository with two stacks takes both. One gate command runs both halves, Renovate takes both ecosystems, and the release artifact decides which release flow leads.
Each stack has a template repository, flagged as a GitHub template, with a clean single-commit history.
kickstart is the Bun base, and every other kickstart duplicates it and adds its stack. A new repository starts
from its kickstart. An existing repository is aligned by matching its kickstart.
kickstartships the Bun tooling base alone: kindbun-toolingplustemplate, with no service parts. A service repository generates its Worker boilerplate with the Cloudflare CLI,bun create cloudflare, and merges it into the template, because template output comes first (Authoring). It then adds the deploy job,docs/deploy.mdanddocs/usage.md.- Every place a clone must act carries a
TODO(kickstart):marker. A generatedMARKERS.mdlists them. The template's gate regeneratesMARKERS.mdand diffs it. MARKERS.mdprints the one command that proves the template is absorbed. It stays a printed command and never becomes a gate row, because a row failing on any marker keeps the template itself red.- That command's standard is its form. It anchors at the top of the repository with
git -C "$top", becausegit grepwith no path searches the current directory alone. It matches the marker with-F. It reads exit 1 alone as absorbed, so a git error never does. Each generator prints the exclude pathspecs its own scanner skips. - A kickstart's
cd.ymlcarries a marker telling a clone to resetCHANGELOG.md, the release tool's manifest and any version file before its first release. That reset is the one sanctioned hand edit of those files (Versioning), and the clone'sAGENTS.mdandCONTRIBUTING.md#what-never-happenssay so. - The README points at the Files table for what is copied verbatim and what has slots. It tells a clone to trim what it does not need and record the deviation at the drift site.
- Each kickstart README links to this handbook.
- Each shape document ships with its fixed headings and a
TODO(kickstart):line under every slot. A heading with nothing to say in the clone holds "None."
LICENSEis MIT. The copyright line readsCopyright (c) <year> Zach Landquist.- Another license is allowed.
LICENSEhas no comment syntax, so its drift site is the license section ofREADME.md. - Every repository carries a
LICENSE, published or not. - The year is the year GitHub created the repository, read from
created_at, and it is never updated. - A derivative keeps the original notice and adds its own beneath it.
- The legal name,
Zach Landquist, appears only in a legally operative field, because it is who enforces or relicenses the work. The copyright line under Identity is the only one. - Every field a user reads takes
ZachTheDev: a manifest's author, a package's author, an installer's manufacturer, an assembly's company. Check where a manifest field surfaces before deciding which it is. - The public email is
hey@zachthe.dev, in every field a user reads that carries one:ZachTheDev <hey@zachthe.dev>. - Commits carry
Zach Landquist <me@zachthe.dev>from the global git identity. No repository sets its own.
zach.toolsis organized by ecosystem family at its first segment and is flat below it.- A Go module is
zach.tools/go/<name>, where the name is the repository's minus any-gosuffix. A program lives atcmd/<what the user types>. - An Android or iOS app takes
zach.tools/app/<name>, reversed astools.zach.app.<name>for its application ID, namespace and package root. - A published crate is
<project>-<component>. - A C# application takes its product name for its namespaces and assemblies. A NuGet library takes
ZachTheDev.<Product>as its package ID, assembly name and root namespace. - A WinGet identifier is
ZachTheDev.<Product>, matching the installer's publisher fields. package.json'snameis the repository name. npm refuses a leading dot, sozachthedev/.githubtakes@zachthedev/dotgithub.- An entry in zach-tools'
modules.jsonstays while any version exists at its path.
These live in GitHub's settings, so they are written here and read back through the API.
Two active rulesets on the default branch, classic branch protection off. default-branch holds deletion,
non_fast_forward and pull_request. default-branch checks holds required_status_checks and code_scanning.
| Parameter | Ruleset | Value |
|---|---|---|
required_approving_review_count |
default-branch |
1 |
require_code_owner_review |
default-branch |
true |
require_last_push_approval |
default-branch |
false |
required_review_thread_resolution |
default-branch |
true |
dismiss_stale_reviews_on_push |
default-branch |
true |
require_extra_approval_for_unattributed_changes |
default-branch |
true |
allowed_merge_methods |
default-branch |
squash |
| Bypass actor | default-branch |
the repository-admin role, mode pull_request |
| Bypass actor | default-branch checks |
none |
required_status_checks |
default-branch checks |
each check run named directly with its source app, strict off |
code_scanning |
default-branch checks |
tool CodeQL, security_alerts_threshold high_or_higher, alerts_threshold errors |
- The role's bypass mode is never
always. Every change is a pull request. The bypass sits ondefault-branchalone, sogh pr merge --adminwaives the approval and nothing else. - GitHub refuses self-approval, so a sole maintainer's own pull request merges with
gh pr merge --admin. The friction is deliberate: every repository is shaped for more than one contributor. - A bot-authored pull request, a release or a dependency update, needs no self-approval. The owner approves it as
code owner and merges it without
--admin, so its rule suite records no bypass. That is practice, not the check control:default-branch checksbinds the checks on either path. - Every merge waits on the checks first:
gh pr checks <n> --required --watch, thengh pr merge <n> --squash, chained so a red check ends the chain.mergeStateStatusnever reports the checks on their own, so the wait reads them directly. TheAnalyze (<language>)checks stay required as that wait's handle, and a failed analysis shows its log under a named check. - A deploy key is the only other bypass actor, only where an unattended job must push. It sits on both rulesets
in mode
always, because a push is not a pull request and carries no check run. ADeployKeyactor stores no actor id and covers every deploy key on the repository. Such a repository therefore keeps exactly one key, named in a comment beside the step that pushes. - A check becomes required only after it reports on a pull request the releaser app opened. A check nothing reports blocks every pull request.
- Every required check records its source app. A workflow job's check run, the
Analyze (<language>)entries included, is posted by GitHub Actions,integration_id15368. A token withchecks: writetherefore cannot satisfy a check under the same name. - No required check names GitHub Advanced Security,
integration_id57789. ItsCodeQLcheck concludesneutralwhen an analysis is missing, and a required check passes onneutral. It also concludes on the first analysis a commit uploads. - The
code_scanningrule takes GitHub's own failure levels. It refuses a merge while an analysis the default branch carries is missing or still running on the pull request's commit. - An
--adminmerge thatdefault-branch checksrefuses names the rule the admin cannot bypass and leaves out the approval it waived:- a running check:
Required status check "<name>" is in progress. - a missing analysis:
Waiting for Code Scanning results. Code Scanning may not be configured for the target branch.
- a running check:
- Every
--adminmerge leaves a rule suite with resultbypass, naming the rule it waived. default-branch checksgoes active only once the default branch carries a CodeQL analysis for every configured language. GitHub accepts acode_scanningrule with none, then refuses every merge until the ruleset is disabled.- A check that cannot report, or a platform outage, is cleared by setting
default-branch checkstodisabled, merging, and setting it back toactive. Each change is a settings write the audit log records. - The pair reads back through
current_user_can_bypass:pull_requests_onlyondefault-branchandneverondefault-branch checks. - A repository not yet on GitHub is created in this order: the repository, its environments with their values,
its labels from the kickstart, its board (Board), the Actions settings, private vulnerability reporting on, the
merge settings with the wiki off and projects on, the first push, the first green run, then the rulesets. The
merge settings and the wiki and projects switches share one
PATCHof the repository. A workflow that names an environment holding no values fails on its first run, and a ruleset that requires a check nothing has reported blocks the first pull request. default-branch checksgoes on first and reads back active beforedefault-branchgoes on. The ruleset with no admin bypass is then in force before the one carrying it.
| Setting | Value |
|---|---|
allow_squash_merge |
true |
allow_merge_commit |
false |
allow_rebase_merge |
false |
squash_merge_commit_title |
COMMIT_OR_PR_TITLE |
squash_merge_commit_message |
COMMIT_MESSAGES |
delete_branch_on_merge |
true |
allow_update_branch |
false |
allow_auto_merge |
false |
web_commit_signoff_required |
false |
- A pull request merges by squash, the one method the repository allows. A merge commit breaks release-plz, which then tags the pull request's last commit. A rebase lands every commit as its own change.
- The repository setting binds every actor, an
--adminmerge included.allowed_merge_methodsindefault-branchholds the method if the setting drifts. - The squash takes GitHub's default message pair, the two squash keys above, written explicitly. A one-commit pull request lands its commit's subject and body. A longer one lands its title and each commit as a bullet.
PR_TITLEis never set. For one commit it writes the commit's subject into the body, and release-please counts that subject as a second change.delete_branch_on_mergeis on. GitHub then retargets the next layer of a stack onto the default branch. Stacked pull requests are fine: each layer merges on its own, and the next is rebased onto the default branch before it merges.allow_update_branchis off. Its button offers the one action that stops Renovate and Dependabot maintaining a branch, a pushed commit. A stale bot pull request is refreshed by its bot.- A stale release pull request, red for a reason the default branch has since fixed, is refreshed with
gh pr update-branch, which works withallow_update_branchoff. release-please force-pushes nothing while the version is unchanged, so the stale run otherwise stays red. A landing names the refresh as a conditional step, never a routine one. allow_auto_mergeis off. Renovate's automerge rides on it, and automerge is off (Updates).web_commit_signoff_requiredis off. No repository requires a sign-off.- No ruleset carries
required_linear_history. Merge commits are off, andpull_requestrefuses a direct push from anyone without a bypass.
default_workflow_permissions:readcan_approve_pull_request_reviews:falsesha_pinning_required:true
An environment has one of three purposes, and its name says which.
- A deployment target is a place the software runs, named for the tier alone:
production,staging,testing,development. Lowercase, singular, never abbreviated. - A credential scope serves a job that deploys nothing. It is named for the workflow that consumes it, in
kebab-case (
depsfordeps.yml), or for a capability several workflows share (release-pr,archive-write). It setsdeployment: false. It takes a reviewer only where a human approves. A scheduled run takes none, unless its job reaches the environment only when an earlier job finds work, asarchive-write's does. The approval is then asked for only when there is something to approve. - A publish approval holds a human approval and nothing else, and is named for the act:
release. A Rust repository'sreleasealso holds the releaser pair, because its release job creates the tags (Releases).
Every environment carries a custom deployment branch policy naming the refs its workflow accepts. Every
environment with a reviewer sets prevent_self_review: false, because a sole reviewer otherwise deadlocks. The
API reports the value only on a required_reviewers rule.
The release environment sets can_admins_bypass: false in every repository, so an admin deploys to it only
through its reviewer's approval, as anyone else does. release-pr and deps keep the default, true.
Every value a workflow reads falls in one of three classes, and its class decides where it lives.
| Class | What it is | Examples | Held as |
|---|---|---|---|
| Public identifier | a value already public, or one a committed file carries | an app client id, a Worker's account_id in wrangler.jsonc |
a variable |
| Private identifier | a value that is not public and grants nothing alone | a cloud access key id, a token id, an account id or a domain no committed file carries | a secret |
| Credential | a value that grants access | a private key, an API token, a secret access key | a secret |
- A variable prints unmasked in a public repository's run logs, and a secret is masked. Holding a private identifier as a secret costs nothing and keeps it out of those logs.
- An account id a committed file carries is public already, so it stays in that file.
- A credential belongs to the environment that uses it. A repository-level secret is the exception, and the workflow that consumes it says why in a comment beside the read.
- A
uses:job takes the called workflow's job-level environment. The caller runs in no environment, so it cannot name an environment secret. A caller whose called workflow reads one passessecrets: inherit, and.github/zizmor.ymlwaives thesecrets-inheritaudit by file name, asrules.secrets-inherit.ignore: [cd.yml, deps.yml]for the files that pass it (Gate). Every other caller passes nothing through. - No zizmor waiver binds the callee. A
file:lineentry matches any location the finding reports, which forsecrets-inheritis theuses:line or thesecrets:line, not the lines between. The sharedworkflowsjob therefore fails unless each job passingsecrets: inheritcallszachthedev/.github/.github/workflows/, as the one CI copy (Gate). It also fails when a file the waiver names holds no such call, so a waiver never outlives its job. zizmor reports nothing for a waiver that matches no finding, so the job reads the waiver list from.github/zizmor.ymlitself, with the runner image'syq, and fails on any error reading it. - A
secrets-inheritfinding with no primary location fails the hold, since the job cannot read its callee. - That hold reads a zizmor pass run with
--no-config --no-ignores.--no-configalone still honors an inline# zizmor: ignore[secrets-inherit], which hides the job, and--no-ignoresdrops config ignores and inline comments alike. The hold then stands on its own, beside the inline refusal (Gate). - With that hold in place a line entry adds nothing, and an edit above the job would turn the gate red for no
reason. A
secrets-inheritwaiver therefore names the file, the one audit whose waiver does (Gate).
Two private GitHub Apps, one per role, named for the role so a change of tool renames nothing.
zachthedev-releaser opens release pull requests and creates the tags and the draft releases.
zachthedev-updater opens dependency-update pull requests.
- One app per role, because a ruleset bypass and a leaked key are each granted per app. The releaser alone bypasses the tag ruleset. The updater's key, held by an unattended job running a third-party image, opens nothing a release needs.
- A token is minted per run with
actions/create-github-app-token. It takesclient-id,private-keyand everypermission-*the job needs. Narrowing is the workflow's choice, so a leaked key mints the whole grant. - The client id lives in a variable and the key in a secret, on the environment of the workflow that mints from it. That holds in an organization too: an organization secret is readable from any branch, which drops the branch policy.
- An app can hold several keys. A key is deleted only after every repository holding it moves. The owner loads each secret. A key never enters an agent's transcript.
- Before changing an app, its key or its installation, list what uses it.
- Converting the
zachthedevaccount into an organization uninstalls every App, and it locks the crates.io owner out, because crates.io signs in through GitHub. Before any conversion, every published crate gains a second named crates.io owner. After it, both Apps are reinstalled, Actions is re-enabled, every.github/CODEOWNERSnames the owner's new personal account in place of@zachthedev, and the profile README is copied to.github/profile/README.md. A code owner is an individual or a team, and after a conversion@zachthedevis neither. - The publish job uploads and flips the draft with the job token,
GITHUB_TOKEN, and no app credential. An event that token raises starts no workflow run, and the token carries no tag ruleset bypass into a job that handles a caller's build output.
- One tag ruleset over every tag restricts
creation,updateanddeletion. The releaser app is its bypass actor. release-please's forced tag and release-plz's tag both run under the releaser token, so no release is refused. The updater can never mint a tag. - A failed release is recovered by cutting the next version, never by moving a tag.
- Immutable releases stay off (Known defects).
- Alerts are on in every repository. They are the feed Renovate's security fixes read, never a check.
- Security updates are on in
rust-crates,rust-appandcsharp-installerand off in every other kind. The kind's.github/dependabot.ymlscopes them. Every entry carriesopen-pull-requests-limit: 0, so Dependabot opens no version update anywhere. - In Rust the
cargoentry admits transitive crates alone (allow: dependency-type: indirect), so Dependabot fixes what Renovate cannot and nothing else. A direct advisory shows Dependabot's "all versions were ignored" note on the alert beside Renovate's pull request. That split is intended. - In C# Dependabot fixes every NuGet advisory, because its NuGet updater never reads the dependency type. A direct advisory gets a pull request from each bot, and the second closes itself after the first merges.
- The
github-actionsentry ignores every dependency, because the security-updates switch is repository-wide and Renovate owns action advisories. - zizmor's
dependabot-cooldownaudit expects seven days unless configured..github/zizmor.ymlsetsdays: 3in every kind withdependabot.yml, so the audit holds the three-day cooldown under Updates. - A Dependabot pull request carries
fix(deps),dependenciesandsecurity. It runs CI onpull_requestwith a read-only token and no Actions secret, and needs no bypass actor.
private_vulnerability_reporting:enabled. The advisory URL everySECURITY.mdnames depends on it.
Each repository's planned work lives on one GitHub Project, copied from the owner's template project and linked to the repository.
- The template is a private project on the owner's account, and
gh project list --owner <owner> --limit <count>shows its number, where<count>is at least the number of projects the owner holds. The list runs newest first and stops at a default limit, so a shorter list can leave the template out. Every field, option and view on a board comes from the template through the copy, never by hand. - A copy leaves behind the template's items, links and auto-add workflow. It keeps every other workflow's setting and turns the workflow off. So each new board gets the browser pass below once.
- A board's visibility matches its repository's.
- A repository without a board records why in
REPOS.md.
Making a repository's board, in order. <template> is the template's number, and <number> is the one the copy
prints.
- Copy the template, titled with the repository's name:
gh project copy <template> --source-owner <owner> --target-owner <owner> --title <repository>. - Match the repository's visibility:
gh project edit <number> --owner <owner> --visibility PUBLIC, orPRIVATE. - Link it:
gh project link <number> --owner <owner> --repo <repository>. - Check that the repository holds the
triageandepiclabels (Labels). - In the browser, on the board:
- Workflows: open each one, check its setting against the table below, and turn it on. Where a setting differs, choose Edit, set it, and choose "Save and turn on workflow". Code changes requested and Code review approved stay off.
- Auto-add to project: pick this repository, enter
is:issue is:openas the filter, and turn it on. - Settings: set this repository as the default repository.
- Compare each view with the template's and set what the copy dropped: on Board, the In Progress column limit; on Backlog, the slice by Labels; on Roadmap, the Start date and Target date fields, the milestone markers and the quarter zoom. Save each view with "Save view" before leaving it.
- Settings: the README and short description match the template's. A README written by hand keeps each paragraph on one line, since the project README shows every newline as a line break.
- Manage access: give Write to each account that moves cards. Write on the repository does not grant it.
- Read it back:
gh project view <number> --owner <owner>shows the title, visibility and README, and the project's Workflows page shows each workflow on or off.
| Workflow | Setting |
|---|---|
| Item added to project | Issues only. Set Status to Backlog. |
| Item reopened | Set Status to Todo. |
| Item closed | Set Status to Done. |
| Pull request merged | Set Status to Done. |
| Pull request linked to issue | Set Status to In Progress. |
| Auto-close issue | On, for Status Done. |
| Auto-add sub-issues to project | On. |
| Auto-archive items | GitHub's default filter, is:issue,pr is:closed updated:<@today-2w. |
| Code changes requested | Off. |
| Code review approved | Off. |
Changing the board:
- A change lands on the template first, then on each board, so no board runs ahead of the template.
- Fields, options, the README, the short description, and a view's name, layout, filter and columns change through the API. A view's group, sort and column field change through the API only when the view is made, and in the browser after that. Workflows and every setting the browser pass names change in the browser alone.
- In an organization the template is marked as a template, and a member makes a board from it in the browser.
-
One command per stack runs every check a contributor can run locally. CI calls that command, never a list of steps. The command per stack is in the Adapters table.
-
CI can add a check that cannot run locally. Its reason is recorded at the drift site, a comment beside the job in
ci.yml. Thecommitsandworkflowsjobs are standard, not exceptions. -
The gate exists so that as much work as possible happens locally and no contributor iterates on Actions minutes.
-
Wherever the code can be cross-platform, CI runs the gate on windows, darwin and linux. A narrower matrix is recorded at the drift site, a comment beside the matrix in
ci.yml. -
A local run proves one operating system, and CI proves the others. A template therefore runs its first CI before it is called done.
-
An expectation that branches on the platform, such as a
cfg!branch in a Rust test or acfg_attrexpect, is unverified until the CI leg for that platform runs. Each branch is derived from the function's contract, never from reasoning about the host. Two such faults passed a Windows gate and failed on Linux and macOS. -
No gate row resolves a tool from the machine's
PATH. The programs the gate expects onPATHare the prerequisites Setup inCONTRIBUTING.mdnames. -
No gate, hook or shared job starts a tool on a
nodefromPATH. Every hook,package.jsonscript and gate row starts a JS tool asbun x --bun --no-install <tool>, the one spelling. Without--bun, bunx starts a bin whose shebang namesnode, such as Prettier's or commitlint's, under thenodeonPATHwhen one exists, and GitHub's runners carry Node. -
The spelling is
bun x, neverbunx. On Windowsbunx.exefails wrangler outright and becomes vitest's workerexecPath, so vitest's workers die.bun xruns both. -
The
preparescript is the one exception, in every repository of the set. It starts lefthook's installer by path,bun ./node_modules/lefthook/bin/index.js install, so it is a Bun start that runs a file (Files). -
A script file a
package.jsonscript runs, such as a service's deploy script, starts its JS tools the same way, or records at the drift site why it does not. -
A gate row starts the tool under the Bun running the gate.
-
bun x --bun --no-installdoes not fail on a missing package: it falls back toPATH, a parentnode_modules/.binor its own cache under the temporary directory. A gate row therefore first requiresnode_modules/.bin/<tool>, the.exeon Windows, to resolve through every link to a regular file. Otherwise the row fails with the set message, which names the tool:<tool> is not installed in this checkout: run bun install --frozen-lockfile, or bun install --frozen-lockfile --ignore-scripts in a worktree (CONTRIBUTING.md#setup). -
The check covers the tool's command,
node_modules/.bin/<tool>, and never a package the tool loads. A package the checkout lacks resolves from a parent directory'snode_modules. The native TypeScript compiler finds its platform binary throughimport.meta.resolve, so a partial or copied install can run a parent directory's copy, and esbuild and workerd load their platform packages the same way. -
On Windows the
.binentry is a regular shim file that outlives its package. A start then fails with bunx's own error, never the set message. -
A hook or a
package.jsonscript checks nothing before its start, since neither is a control (Hooks). With the checkout's copy missing, itsbun xcan run a parent directory's copy and report green, where a gate row refuses first. A stale install also passes the row's check and runs another version. -
CI installs frozen before any start, so each of these reaches a local run alone, where it can make that run disagree with CI. A clean frozen install is the fix, and
CONTRIBUTING.mdsays so under Troubleshooting (Files). -
A gate resolves every program it spawns to an absolute path from
PATHalone, and spawns that path. It drops empty and relativePATHentries and any entry inside the repository. Inside compares canonical paths or file identity, never an entry's spelling. It checks a found program the same way at its final path, through every link and junction, because a junction from an outside entry into the checkout otherwise passes. It never runs a bare name, and it never uses a directory the repository tracks or the process starts in as a lookup location. On Windows a bare name can otherwise resolve from the current directory or a tracked tool directory beforePATH. -
Every gate hands its children a
PATHwith no entry inside the checkout, so a child resolving a bare name cannot reach one either. -
Where a stack's spawn searches such a directory, a file named like a program a gate, its hooks or an install start is refused before a merge (the one CI copy, below):
bun,bunx,gh,git,miseornode, with an executable extension or none. Per stack:- Bun:
Bun.spawnSyncsearches the current directory first, in CreateProcess's order.scripts/run.tstherefore resolves every program itself and runs Bun asprocess.execPath. - C#: Cake's tool locator globs
./tools/**/<name>beforePATH. Each tool therefore resolves through aPATH-only lookup passed toWithToolPath, and the gate refuses tool-named files undertools/and at the root. - Go:
os/execrefuses a name resolved from the current directory (exec.ErrDot), and Task's interpreter searchesPATHalone, so the rule holds by construction. Task'sdotenvloads.env, which can setPATHorGODEBUG, so.envstays gitignored. Nothing setsGODEBUG=execerrdot=0or a.or emptyPATHentry. - Rust:
Commandsearches the running binary's own directory, thenPATH, and never the current directory. On Windowscargo run, and socargo xtask, putstarget\debugandtarget\debug\depsfirst onPATH, and thewhichcrate also accepts.com,.bat,.cmdand extensionless files. xtask therefore searches only absolute, existing entries whose canonical path lies outside the running executable's directory and outside the checkout, accepts.exealone on Windows, and passes the same narrowedPATHto every child.
- Bun:
-
Bun's script runner puts the checkout's
node_modules/.binfirst onPATH, so underbun runa committednode_modules/.bin/bunwould replace the gate itself. In a Bun repository CI therefore installs withbun install --frozen-lockfile --ignore-scripts, the sharedcommitsjob's install included, and a trackednode_modulesis refused before a merge (the one CI copy, below).bun run checkstays the documented command. CI and thepre-pushhook call the gate script directly, asbun scripts/check.ts, because a barebun <file>skips the script runner. -
A pull request controls its own gate code:
package.jsonscripts,check.ts,cake.cs, an MSBuildExec, abuild.rs. No gate therefore makes running an untrusted pull request safe, in CI or on a contributor's machine. In CI, GitHub's approval for a fork's pull request and the gate job's read-only, tokenless shape contain one. On a contributor's machine, reading the diff before running anything contains one. -
The file refusals, the program resolution, and the
mise.tomland environment allow-lists under Tools do something narrower. They keep a code path from hiding in files that read as data, such asmise.toml, a lockfile, a.envfile, a stray config, a trackednode_modulespath or a binary named like a tool, where a reviewer skimming a diff does not look for one. -
The refusals keep such a file off the default branch. They cannot stop the first local run of an unread branch: a
bunfig.tomlpreload, apathsredirect in the gate's ownscripts/tsconfig.jsonor a Taskdotenvruns before any row does. Under Bun a preload also runs before each commit hook's tool and in any script that starts one, and a roottsconfig.jsonwithpathsorbaseUrlredirects that tool's imports. Committing on an unread branch runs that branch'scommitlint.config.jsfrom the commit hook before any check, as a preload runs before the hook's tool. -
The shared
commitsandworkflowsjobs are the one CI copy of the refusals that block a merge. A gate need not repeat one once its repository pins the.githubrelease that carries it.- The
commitsjob refuses a tracked env file at any depth, a trackednode_modules, every tracked symbolic link, a tracked root.config, a rootpackage.yaml, abunfig.tomlkey, apatchedDependencieskey, apackage.jsonexportskey, a rootpackage.jsoncosmiconfigkey, tsconfigpathsandbaseUrl, a duplicated JSON key, and apackage.jsonor project config that does not parse. - It also refuses a tree without a tracked
.github/renovate.json(Updates), and a runtime pin that names no exact version (Workflows). - The
workflowsjob refuses a root file named like a program, an inline zizmor waiver, an action outside.github/actions/, a repeated key, an anchor or a second document in.github/zizmor.yml, a stale or positionalsecrets-inheritwaiver, and a job passingsecrets: inheritto another callee.
- The
-
A pull request cannot change what either job runs at the commit its
ci.ymlpins. It can changeci.yml's call, and code-owner review of.github/workflows/holds that.zachthedev/.github's ownci.ymlcalls both jobs by./, so a pull request there runs its own copy of each, and the same review holds that. The gate keeps what no shared job reads and what keeps a local run in step with CI: the mise assertions, thescripts/shield, the tsconfig location rule, every on-disk config-name refusal, the stand-in, theshell:hold, and the Go module and Rust toolchain checks. -
The
commitsjob's refusals run on every pull request, on every push to the default branch and daily fromaudit.yml, as theworkflowsjob's do. Its setup-bun step, its install and both commitlint steps run after every refusal, on a pull request alone. Two pull requests that each pass can merge into a tree neither run read, such as apackage.jsonholding a key twice, and the push run reads it. A push whose commit message holds a skip instruction such as[skip ci], or one the workflow token makes, starts no push run. The next daily run reads what it left. A direct push to the default branch meets the refusals the same way, after it lands. A C# gate keeps its duplicate-key check overglobal.jsonanddotnet-tools.json, which thecommitsjob does not read. -
CODEOWNERS,* @zachthedev, withrequire_code_owner_reviewondefault-branch, makes the owner's review a merge condition for every change to gate code or to a config a row reads. The owner's own pull request merges through the admin bypass (Branch rules). -
No gate holds a config file's text against a copy in its own code. Where a row's proof takes its expected set from an ignore file, it reads the committed file.
-
eslint.config.tsandcommitlint.config.jsare code the rows and the commit hook run. Thecommitsjob runs a pull request'scommitlint.config.jsin CI, contained by the same read-only, tokenless shape as the gate job. -
A tracked env file Bun loads on its own,
.envand its variants, is refused at any depth before a merge (the one CI copy, above). Bun loads one from the directory each start runs in, so the root one reaches the gate's environment (Known defects) and a nested one reaches any start below it. The names match without regard to case. A template such as.env.examplepasses. -
Every
bun test,bun -eandbun <file>start in a gate row, the gate's own entry, a hook or a check script passes--no-env-file, so Bun loads no.envinto it. Bun otherwise loads.env,.env.localand.env.developmentinto each tool it runs, and an env value can turn a row red, asPRETTIER_EXPERIMENTAL_CLIdoes.bun xignores the flag in every position, so a JS tool it starts loads an untracked env file on a contributor's machine (Safety inCONTRIBUTING.md). A dev or deploy script keeps env loading.bunfig.tomlstays the cooldown alone (Updates), so it never setsenv = false. -
A
bunfig.tomlholding any key but[install] minimumReleaseAgeis refused before a merge (the one CI copy, above), because a top-levelpreload, a[test] preloadand[define]each run or rewrite code.bun --config=<file> <entry>, with the equals sign, drops the checkout'sbunfig.toml, while-c <file>,--config <file>and-c=<file>still run its preload. -
Before its first row, a Bun gate refuses a
scripts/directory without its owntsconfig.json, or one holding ajsconfig.json, apackage.jsonor anode_modules, because the roottsconfig.json'spaths,extendsandbaseUrlotherwise redirect the gate's imports. -
Nothing refuses a tracked
.npmrc, and a reviewer does. A registry it names fails every package's integrity check againstbun.lock. -
Those checks import only built-in modules, so no package loads before they pass.
-
A Bun gate imports its own packages by path under the checkout's
node_modules, so an absent install fails the gate. It does not checknode_modulesagainstbun.lock: CI installs frozen before its gate, and a stale local install is the contributor's to refresh (Troubleshooting inCONTRIBUTING.md). -
A Bun gate's ESLint refuses an import attribute other than
type: 'json'. Bun runs any file as a module underwith { type: 'js' }, a.txtincluded, and no row reads such a file. -
A
patchedDependencieskey in any trackedpackage.jsonis refused before a merge (the one CI copy, above). A patch rewrites a pinned package's code under a frozen, script-free install and passes the lockfile's integrity check. A scope as narrow as the gate's own imports misses lint configs and tools. -
A Bun gate refuses a
tsconfig.jsonorjsconfig.jsonon disk, tracked or not, at any depth outsidenode_modulesand.claude/worktrees, except at the paths the gate names. typescript-eslint's project service reads the nearest one for each file, so this is a location rule for a tool with no named config form, with no hold on the text. -
Each project config is walked along its
extendschain before a merge (the one CI copy, above).pathsorbaseUrlis refused, and so is anextendsnaming a package, an absolute path, a missing file or a file outside the checkout. AnoCheck: truelets the typecheck row pass over a type error while it prints its full count, so a project config is gate config underCODEOWNERS. Bun applies the root one to a tool's own imports, so apathsentry for a package commitlint imports ran repository code in the commit hook. A project aliases throughpackage.jsonimports, whose#names cannot redirect a bare package name. -
An
exportskey in any trackedpackage.jsonis refused before a merge (the one CI copy, above). Bun resolves a bare import of a package's own name, from a file inside it, to that package'sexportsahead ofnode_modules. A rootpackage.jsonrenamed after a package commitlint loads, withexports, therefore runs checkout code inside commitlint, withbun.lockunchanged. -
A Go gate, and any other over no TypeScript, refuses a
tsconfig.jsonorjsconfig.jsontracked at any depth or on disk at the root, since none of its tools reads a nested one. -
Every tracked
tsconfig.jsonandjsconfig.jsonis plain JSON with no comments, because every gate and thecommitsjob read one with a strict parser. -
A duplicated key, at any depth, in any JSON file read to decide a refusal is refused (the one CI copy, above). Bun's own reader keeps the first copy, while
JSON.parseand Go'sencoding/jsonkeep the last. A duplicate therefore lets a check pass one value while Bun uses the other. -
The shared
commitsjob reads that JSON with a parser that refuses a repeated key, and it fails closed on anything it cannot parse. jq keeps the last copy and passes over a file nested past its depth limit, so no refusal reads a tracked JSON file through jq. -
A config that changes a gate row's result is refused when it is present on disk, committed or not, so a local gate agrees with CI. A personal file, a
lefthook-localor.lefthook-localfile in any form or an env file, is refused only when committed, and.gitignorenames it. -
A Go gate refuses a tracked Go file no build compiles.
-
A Bun gate refuses a tracked TypeScript file no project reads, in its typecheck row. Its lint row refuses a tracked JavaScript or TypeScript file, the extension compared folded, that ESLint's first pass did not lint, unless another row holds it. Bun runs each such file, and ESLint passes over a file an ignore covers or no
filespattern matches without a word. -
A row holds a tracked file when it regenerates the file and compares it byte for byte, as a generated file's row does. It names the file in its
holds, through the constant its check reads. No check proves that the check reads it, so review does. -
A reviewer, not the gate, refuses a tracked file no row checks: anything under
dist/,coverage/,.claude/worktrees/or a.git,.sl,.svn,.hgor.jjdirectory, a JavaScript or declaration file beyond the ones a tool needs, such ascommitlint.config.js, a path below a personal file's name, and.claude/settings.local.json. Each sits in the diff and runs no code, soCODEOWNERSreview holds it. In a Bun repository the lint row refuses such a JavaScript or TypeScript file first, unless another row holds it. -
Bun also runs a file with no extension as TypeScript, started or imported, and a
.es6file it starts directly. No coverage check names either, so review alone reads one. -
In Go a reviewer also refuses a package under an
_directory, below a secondgo.mod, or under atestdatadirectory that a build imports../...skips each, so no row checks one, and review of the diff holds it. -
The gate refuses a root
.configdirectory outright, in any letter case. mise, the dotnet tool manifest, cosmiconfig's meta config and lefthook all read it. -
cosmiconfig reads its own settings from a root
package.jsoncosmiconfigkey, a rootpackage.yamland the root.config, whatever--confignames, and a$importthere runs a module inside commitlint. The sharedcommitsjob refuses a tracked rootpackage.yaml, a rootpackage.jsoncosmiconfigkey and a tracked root.configbefore any commitlint step (the one CI copy, above). The gate refuses the root.configon disk too, since mise and lefthook read it. -
Every gate tool that searches for its own config runs with the one config named explicitly. The tools are Prettier, commitlint, golangci-lint, ESLint, taplo and zizmor, CSharpier in C#, and rustfmt, clippy and cargo-deny in Rust.
-
A config the tool finds first replaces the shared one: a committed
.golangci.jsonbeside.golangci.ymlreplaced the lint config and hid agovetfinding while the row named no config. -
The gate refuses the other names a tool reads only where the tool has no named-config form: cargo's config, the toolchain file, the actionlint config, lefthook's configs, mise's configs, and the project configs typescript-eslint reads (above). Refusals match at every depth the tool reads, without regard to case. A tracked env file, a root
package.yamland a rootpackage.jsoncosmiconfigkey are the sharedcommitsjob's to refuse (above). -
A tool whose row names its config drops the refusal of its other names, but only where a measurement shows the named form stops every read that tool makes. Each tool below has that measurement, and keeps a refusal only for the exception measured beside it:
- Prettier:
--config .prettierrcstops every other config search. It still reads a nested.editorconfig, so every Prettier run passes--no-editorconfig(Formatting), or the gate refuses a nested one. What the named.prettierrcmay hold is under Formatting. - commitlint:
--config commitlint.config.jsstops.commitlintrc*, the othercommitlint.config.*names, and thecommitlintkey inpackage.jsonorpackage.yaml. cosmiconfig's owncosmiconfigkey is a different key, read whatever--confignames, so it stays refused with the rootpackage.yamland.config(above). - ESLint
--config eslint.config.ts, taplo--config .taplo.toml, zizmor--config .github/zizmor.ymland golangci-lint--config .golangci.yml: each stops the tool's other config names, measured with the row's own flags, with no exception. - rustfmt reads a
rustfmt.tomlor.rustfmt.tomlat any depth, in any case and above the checkout. The row runscargo fmt --check -- --config-path rustfmt.toml, which stops every one of those reads. - clippy reads a
clippy.tomlor.clippy.tomland takes no config flag. It searches from each crate's directory, or fromCLIPPY_CONF_DIRwhere that is set, and walks upward until it finds one, so a config above the checkout reached the gate. The row setsCLIPPY_CONF_DIR=<absolute root>. Each Rust repository commits a rootclippy.tomlholding comments alone, which ends the walk at the root, and the gate refuses.clippy.toml, the other name clippy reads there. - cargo-deny reads the nearest
deny.toml,.deny.tomlor.cargo/deny.toml. The row passes--config deny.toml, a global flag that goes ahead ofcheck, and it stops the rest.
- Prettier:
-
A gate that calls Prettier's
getFileInfopassesresolveConfig: false. The API otherwise resolves the nearest config in the gate's own process, a nestedpackage.jsonprettierkey and its plugins included, and--confignever reaches it. -
Every row that walks the tree prints what it checked, the files or their count, and fails on zero. A row that checked nothing reads green otherwise: taplo and Prettier each exit 0 on empty input.
- A test row fails on zero, on every test skipped, and on a filtered run. A row whose runner reports skips, bun
test, vitest, nextest and Microsoft.Testing.Platform among them, also fails on any skip count other than the
one the gate declares for that platform, 0 by default. An undeclared skip fails, and so does a declared one
that no longer happens, so a declaration fails once its gap closes. vitest, nextest and
Microsoft.Testing.Platform report a filter as a skip, so the declaration is what catches a filter there. A
platform-only skip is declared the same way, per platform, and so is a Rust
#[ignore], which nextest counts as a skip. - A declaration is a count, not the skipped tests' names, so review reads which tests a change skips.
- The gate refuses a case its runner counts as passing while the case expects a failure. bun test counts a
failingorfailingIfcase as a pass and names it nowhere in its summary, so a Bun repository's ESLint refuses either in a test file. vitest passes afailscase whose body fails and counts it as an expected fail, so a row reading vitest refuses any expected fail. - A row reading vitest reads the
Testsline of its text summary on stdout. It refuses stdout holding more than one line of that shape, since a test can print one. The counts under the line's labels must add up to its total. vitest's JSON reporter reports an expected fail as passed, so it is no reader. - Under Microsoft.Testing.Platform, a runner config that marks every test explicit exits 0 with every test skipped. A runner config that can skip or filter tests falls under the tool config search above, in every stack.
- The Rust doctests row is that rule's Rust form. It sums examples over every
test result:line, and fails on zero, on any example filtered out, on every example ignored, and when result lines are fewer thanDoc-testsheaders. Acompile_failorstandalone_crateexample prints a second result line under its header, so the row never asks for one line per header.cargo test --docexits 0 on each case the row fails, and it has no stable machine format. - The doctests row's one allowance is a declared zero: a constant beside the step table, which itself fails once
the row counts an example, so it leaves in the pull request that adds the first one. A
rust-appwith no library target declares zero, and the row skips the cargo call, sincecargo test --docexits 101 there. - The doctests row withholds
RUSTDOCFLAGS,CARGO_BUILD_RUSTDOCFLAGS,CARGO_ENCODED_RUSTDOCFLAGSand everyCARGO_TARGET_<triple>_RUSTDOCFLAGS, the last matched by its prefix and suffix in any letter case. Each can pass--test-argsthat filters or lists every example while the row stays green. The count catches the same filter set throughbuild.rustdocflags. - A Rust gate hands every child whose output a row reads
CARGO_TERM_QUIET=false, so cargo prints itsDoc-testsheaders whatever quiet setting a user config holds. - A Bun test row runs with
CI=true, so a file holdingtest.onlyfails the row, where it would otherwise run that test alone and leave the rest out of the count. The row reads bun test's summary from stderr alone, the last block, since a test's own output goes to stdout and can print a line shaped like a summary. - A row that parses tool output strips ANSI CSI sequences before it matches, and the gate hands every child
NO_COLOR=1. A summary colored on the runner alone turned a gate red there. - A message JSON-quotes the input it interpolates, such as a path or a value read from a file. A carriage return or a newline in that input then stays inside one line, where it cannot start an Actions workflow command.
- A test row fails on zero, on every test skipped, and on a filtered run. A row whose runner reports skips, bun
test, vitest, nextest and Microsoft.Testing.Platform among them, also fails on any skip count other than the
one the gate declares for that platform, 0 by default. An undeclared skip fails, and so does a declared one
that no longer happens, so a declaration fails once its gap closes. vitest, nextest and
Microsoft.Testing.Platform report a filter as a skip, so the declaration is what catches a filter there. A
platform-only skip is declared the same way, per platform, and so is a Rust
-
Rows that build nothing run first, then rows that run repository code, and the preflight or tree rules run again after each code row, because repository code can write any file a later row reads. A code row is any row that loads repository code: ESLint's config, a test runner, clippy, which builds build scripts and proc macros, and
wrangler types, which runswrangler.jsonc'sbuild.command. The Rust order is the example: fmt, taplo, deny, machete, prettier, actionlint, zizmor, tsc, then tools, clippy, tests, doctests, doc.- A row that builds nothing can still run tree code. A
.prettierrcplugin, which review holds (Formatting), runs in the format row, and so does abunfig.tomlpreload on a local run of an unread branch. - The re-run repeats the named refusals and compares no tracked file with the index. A code row that rewrites a config a later row reads therefore passes the re-run, unless a refusal names that config.
- The actionlint row hands actionlint the workflow files by name. With no file argument actionlint also needs a
.git, so it fails in an archive copy of the tree. - The actionlint and zizmor rows fail unless every file they handed over appears in the tool's own per-file
output: actionlint's
-verboseline for each file and zizmor'scompletedline. - The toml row fails unless taplo's own list of found files matches the files the row handed it (Formatting).
- A row that reads taplo's or zizmor's per-file output sets
RUST_LOG=infoitself. Both print those lines at that level, so a contributor's stricterRUST_LOGhides them. - The taplo, actionlint and Prettier rows hand files as plain paths after
--, never with a./prefix. A./path slips past taplo's excludes and actionlint's config globs, and--keeps a file named like a flag a path. - A
bun testrow names its paths with./, asbun test ./scripts/, because bun test reads a bare argument as a name filter.
- A row that builds nothing can still run tree code. A
-
An ignore file a row reads, such as
.prettierignoreor the excludes in.taplo.toml, a lint config that carries exclusions, rules or the linter list, and.github/zizmor.ymleach narrow what a row checks, so each is gate config underCODEOWNERS(above). -
The shared
workflowsjob refuses azizmor: ignore[comment in a tracked file under.github(the one CI copy, above), so every waiver lives in.github/zizmor.yml. An inline comment waives any audit on its line,unpinned-usesincluded. The job searches every file as text, withgit grep -a, so a.gitattributesline marking a file-difforbinarycannot hide a comment from it. The search reads.githubin its exact spelling, the directory zizmor reads on the runner. -
A waiver in
.github/zizmor.ymlnamesfile:line, as anartipackedwaiver does, so an edit that moves the finding turns the gate red and the waiver is read again.secrets-inheritalone takes the file form, because the callee hold is its control (Secrets). -
The shared
workflowsjob reads.github/zizmor.ymlwith the runner image'syqbefore any other step reads it. It refuses a key repeated in one mapping at any depth, an anchor, a second document, and a fileyqcannot parse (the one CI copy, above). zizmor keeps the last copy of a repeated audit underrules, so a laterdisable: trueturns off an audit whose first copy a reviewer reads. An alias needs an anchor in its own document, so the anchor refusal covers every alias. -
The shared
workflowsjob refuses asecrets-inheritentry holding a colon. zizmor binds afile:line:columnentry to that position alone, where a later shift can land another call, and a position that matches nothing waives nothing while its file part would read as held. -
zizmor's config cannot waive a composite action's finding. A composite action under
.github/actionstherefore carries no waiver, and its finding is fixed. -
Both also refuse every ShellCheck directive in a workflow
run:script. ShellCheck has no waiver file, so a finding is fixed in the script. -
That refusal reads what ShellCheck reads. actionlint's
-shellcheckflag runs a stand-in that takes the decoded script, refuses any line holding a# shellcheckdirective in any case, and otherwise runs the pinned ShellCheck over the same bytes. No search of the file text sees the same script: ShellCheck honors several keys per directive, a key right after a quoted value, YAML folding and YAML escapes, sixteen spellings in all.- A second canary, carrying
# shellcheck disable=SC2086, proves the refusal on every run, beside the canary that proves ShellCheck ran (Workflows). - The flag's value is single-quoted with forward slashes. An unquoted Windows backslash path turns the rule off with no error.
- The shared job's stand-in comes from
.github's own pinned workflow text, never from the caller's checkout. - A stand-in writes nothing to stdout until it has read its input whole and ShellCheck has exited. One that
writes ShellCheck's stdout and then fails leaves
[]beside its exit 2, and actionlint reads[]as a clean script. - The shared job refuses a root entry named
', a single quote, tracked or on disk. actionlint looks the whole-shellcheckvalue up as one program path before it splits the words, so on Linux and macOS a value starting'/reads as a relative path under that directory. A file there runs in place of the stand-in and answers both canaries. A gate need not refuse one: in the gate job a planted program runs pull-request code, which runs there anyway, and the shared job checks the same workflows again.
- A second canary, carrying
-
Every gate and the shared
workflowsjob refuse ashell:value, on a step or underdefaults.run, other thanbash,shorpwsh. actionlint runs ShellCheck for bash and sh alone, so a custom shell such as/bin/bash -e {0}runs bash unchecked.- A gate parses the workflow for that check. The shared job reads lines, since no YAML parser is pinned on the
runner: a
shellkey is a plainshell: bash,shorpwshline, and a value continued onto a deeper line is refused, becauseshell: pwshover-c bash {0}runs bash. A script line that spellsshell:is refused there too.
- A gate parses the workflow for that check. The shared job reads lines, since no YAML parser is pinned on the
runner: a
-
actionlint lints workflows alone, so a composite action's
run:steps under.github/actionsget no ShellCheck. That is a named residual. -
Every gate and the shared
workflowsjob refuse a.github/actionlint.yamlor.github/actionlint.yml, in any case, the job a tracked one. actionlint reads either, and apathsignore in it drops any finding, the stand-in's refusal included. A canonical one is added the day a repository needs it. -
Every gate withholds
BUN_OPTIONSandSHELLCHECK_OPTSfrom every child it starts, in every spelling. An ordinary shell sets either. Bun readsBUN_OPTIONSas flags ahead of its own, a test name filter or a preload among them.SHELLCHECK_OPTSreaches ShellCheck past actionlint's--norc. TheBUN_INSPECTnames have no ordinary use, so the contributor leaves them unset (Safety inCONTRIBUTING.md). -
The gate refuses a workflow file whose extension is not a lowercase
.yml. actionlint's file list and zizmor's collection each missed a.github/workflows/UP.YML. -
The CI job's
timeout-minutesbounds the gate. A gate sets no deadline of its own on a row and kills no process tree, and on a contributor's machine Ctrl-C ends a hung tool. -
A gate can still bound a pipe a leftover process holds after its tool exits, and fail the row: a Go gate through
exec.Cmd.WaitDelay, a Bun gate through a short drain in its run helper. -
Task reads files of its own before the gate's first row. In a Go repository CI and the
pre-pushhook therefore run the gate's tree rules as a step of their own before Task starts. The rules then refuse a.taskrcor a second Taskfile before Task reads one. Task'sdotenvloads.envinto every task, so a tracked.envis the sharedcommitsjob's to refuse before a merge. -
In a Go repository the gate job and the
pre-pushhook setGOWORK=offandGOFLAGS=-mod=readonly, and the gate refuses a trackedgo.work,go.work.sumandvendor/. Each can put checkout code in place of a module the gate's owngo runbuilds, as a trackedgo.workdid. -
In a C# repository:
- The gate refuses a nested
Directory.Build.props, aDirectory.Build.rspanywhere, and a nested.globalconfig,.editorconfigornuget.config. Each turned a red build green or added a package source past the root's<clear />. A nested.editorconfigpasses only where the gate names its path. - The build, test and installer rows pass
DirectoryBuildPropsPath,DirectoryBuildTargetsPathandDirectoryPackagesPropsPathas absolute paths at the root, so MSBuild reads the root's files alone. - The build and installer rows also pass
-noAutoResponse, so MSBuild reads no response file. The test row does not:dotnet testreads noDirectory.Build.rsp, and in MTP mode it hands the flag to the test app, which exits 5 with zero tests. - CSharpier runs over named files with
--config-path,--ignore-pathand--include-generated, and the row compares its checked count against the committed.csharpierignore. A root.csharpierignoreof*gaveChecked 0 filesand exit 0. - The gate refuses a root
cake.config. - The gate refuses a
testconfig.json,*.testconfig.json,xunit.runner.jsonor*.xunit.runner.jsonat any depth. The tests row reads the total, succeeded and skipped counts from the summary, never the exit code. - In a worktree under the main checkout with no
dotnet-tools.jsonof its own,dotnet tool runreads the main checkout's manifest, so a row there can run another tool version than CI does. Troubleshooting inCONTRIBUTING.mdsays so.
- The gate refuses a nested
-
In a Rust repository:
- cargo started at the root reads the root
.cargo/configand.cargo/config.toml, the extensionless one winning, and every one above the checkout, never a crate's. The gate refuses.cargo/config, so.cargo/config.tomlis the one checkout config cargo reads. cargo has no named form, so a config above the checkout or inCARGO_HOMEis a named residual, the one such read in a Rust gate. - The gate refuses a
rust-toolchainorrust-toolchain.tomlanywhere but the rootrust-toolchain.toml. - The doctests row follows the test-row rule above.
- The machete row passes
--with-metadata. Without it cargo-machete reads the plain[dependencies]table alone, so an unused target-specific dependency passes. The metadata read would rewrite a staleCargo.lock, and the--lockedxtask alias refuses a stale lock before any row runs, so the row rewrites nothing.
- cargo started at the root reads the root
-
A test or script that spawns git drops every inherited
GIT_*variable for that process and names the repository with-C <root>. git exportsGIT_DIRandGIT_INDEX_FILEto a hook, so a gate the hook runs otherwise writes into the hook's own repository. -
A script file counts as a script there. A
package.jsonscript line that runs git inherits the environment. No hook runs such a line, so no hook'sGIT_DIRreaches it, and it stays a named residual. -
Every process a Bun gate script starts, its tests' own included, starts with
windowsHide: true. On Windows a console program opens a console window of its own when the process starting it has no console, as under an agent or a service. A case in the sharedscripts/run.test.tsrefuses a start without it. -
The gate's own
gitchild starts with an empty environment plusGIT_CONFIG_NOSYSTEMandGIT_CONFIG_GLOBAL=/dev/null, andSystemRooton Windows where the stack's start of git needs it, as Go's does. Listing tracked files needs no inherited name. -
A gate's tracked listing refuses to run unless
git rev-parse --show-toplevelnames the checkout root. An empty.gitdirectory at the root makesgit ls-fileslist a parent repository's index without a word. -
A checkout another account owns therefore stops the gate. git refuses it as dubious ownership and reads no
safe.directoryfrom the configs the gate turns off. The fix is the directory's owner, never asafe.directorythe gate would read, andCONTRIBUTING.mdsays so. -
Every gate lists tracked paths once and compares names in its own code by one rule: map case, upper then lower. It never uses git's
:(icase)pathspec magic. git'sicasefolds ASCII alone, macOS's APFS folds case beyond ASCII, and an inheritedGIT_LITERAL_PATHSPECSturns the magic off without a word. A broader fold costs a false refusal at worst. -
The stack's own runner drives the gate: Bun scripts in
package.json,xtaskfor Rust, Cake for C#, go-task for Go. AMakefileis a violation. -
In a Bun repository every file under
scripts/that the Bun kickstart carries, butcheck.ts,check.test.ts,expected.ts,tsconfig.jsonandmarkers.ts, is byte-identical across the set, the tests and their stand-ins included.check.test.tstests the repository's owncheck.ts, so it is the repository's own too.markers.tswrites the template'sMARKERS.md(Kickstarts), so it is the template's own file, and no other repository carries it. A file the kickstart does not carry is the repository's own. The repository's own list, its project config paths, lives inscripts/expected.ts. -
A Rust repository's gate modules are shared by copy the same way, never through a shared crate.
-
cargo xtaskiscargo run --package xtask, and the outer cargo resolves the workspace before any row runs. The alias in.cargo/config.tomltherefore carries--locked:run --locked --package xtask --quiet --. -
The root
.cargo/config.tomlis data that runs code, asbunfig.tomland.prettierrcare, so the Rust gate holds it to one key:[alias]withxtaskalone. That refuses an alias named after a row's subcommand, such asfmt,clippy,nextest,denyormachete, which cargo runs in place of the tool. It also refusesbuild.rustdocflags,build.rustflags,build.rustc-wrapperandtarget.*.runner. A named config that cargo reads only through--config, such as a repository's own local file under.cargo/, is outside the rule. -
The Bun linter is ESLint with typescript-eslint, configured in
eslint.config.ts(Known defects). -
typescriptand@typescript/native, the alias the native compiler installs under, both ship atsc.bun installlinksnode_modules/.bin/tscto the claiming package whose name sorts first. The typecheck row therefore holdstsc --versionto the majorpackage.jsonpins for@typescript/nativebefore it checks anything. -
checkis the whole gate. Acheck:quickwithout the slow rows, such as the tests, is allowed for thepre-pushhook, per stack:task check:quick,cargo xtask check --quick, a Cake target. -
A Bun gate refuses an argument that is neither a row's name nor a flag it takes, before any row starts. A mistyped row name would otherwise select nothing and read as green, and a mistyped flag would run the whole gate.
-
One gate task lists the gate's rows, and
bun runwith no arguments counts. Documentation names that task and restates no list.
- The reusable workflows live in
zachthedev/.githubasworkflow_callworkflows:commits,workflows,dependency-review,codeql,deps,release-pr,publish. A repository calls them from five files and adds its own gate job. A fix lands once. ci.ymlholds everything that judges a pull request: the gate matrix,commits,workflows,dependency-review.cd.ymlholds everything after a merge. That is the release pull request on push to the default branch, the publish chained withneeds:on the release job's outputs in the same run, and the deploy for a service. GitHub raises noreleaseevent for a draft, so nothing listens for one.codeql.yml,deps.ymlandaudit.ymlstand alone, because each runs on its own clock.- A repository whose working tree holds real credentials, in gitignored files, adds a
Secret scanjob toci.ymland requires it by name indefault-branch checks. GitHub's push protection covers provider patterns alone. The scanner adds detectors of its own and checks a found credential live.zachthedev/.githuband the kickstarts hold no credential in any working tree, so they carry no such job. - Every CI job that does not need Windows or macOS runs on Linux. A job that stays on another OS carries a
comment naming the mechanism that pins it there, such as a linker, an SDK component, WinUI, WiX or the gate's
three-OS legs, never the target platform alone. Every shared job runs on Linux, and the shared
codeqljob takes a caller's runner per language. - A workflow cannot call itself, so a file that is both reusable and self-run carries both trigger sets in one
file. That holds for
codeql.ymlanddeps.ymlinzachthedev/.githubalone. In every other repositorydeps.ymlis the caller. - Every action is pinned by full commit SHA with a trailing
# vX.Y.Zcomment. - Job permissions are the minimum the job needs.
persist-credentials: falseon any checkout that pushes nothing. A caller grants the called workflow's declared permissions on itsuses:job, because GitHub refuses the call otherwise. - A tool published by GitHub, a platform service or a runtime setup runs through its maintainer's official action, pinned by commit. Platform services: code scanning, dependency review, a release bot, a dependency bot, an app token, an attestation, a secret scanner. Runtime setups: Go, .NET, Bun, Node.js. A runtime setup action verifies no download. The pin file the runtime reads plus the cooldown is the control.
- A CI job that runs a tool under Node.js installs Node.js through
actions/setup-nodebefore the tool runs, from a committed.node-versionthat Renovate bumps under the cooldown. Its tier is a version alone, named by that file. A tool started throughbun x --bunruns under Bun and needs none. The sharedcodeqljob names its version on the step itself (CodeQL). - A runtime pin names one exact version. setup-bun and setup-node resolve a range, or a name such as
latestorlts/*, when the job runs, past any cooldown. setup-bun installs the newest release wherepackageManageris missing or names no Bun. setup-node keeps the image's Node.js on an empty.node-versionand follows a JSON one to another file. The sharedcommitsjob therefore refuses apackageManagerother thanbun@X.Y.Zand a root.node-versionother than oneX.Y.Zline (the one CI copy, Gate). It runs that check on every event, before its setup-bun step. - A restored CI package cache is trusted as it stands. The set's package checks run at download, and a restored package is not checked again. A module already in Go's module cache, for one, is compared with the hash recorded at its download, and its files are not hashed again. After the first download, the cache is the trust boundary.
- Every job on the default branch shares one cache scope, so a dependency that runs code in one job can plant a
cache another job restores. A release build therefore restores no cache, and neither does a job holding a secret
or a token with a write permission. Nor does a job whose output such a job consumes, as an artifact, an output
or a file. That covers a tool's executable, such as the Bun
setup-buncaches, which such a job turns off withno-cache: true, and an extraction cache, such as CodeQL's TRAP cache (CodeQL). - Every other job that restores a package cache names the boundary in a comment beside the cache:
setup-go, whosecacheinput defaults to true,setup-dotnetwithcache: true,Swatinem/rust-cache, and any Bun or Cargo cache. - The rule covers a cache one job saves and another restores, through
actions/cacheor an action's own cache. The runner image's tool cache is outside it, since no job writes it. - The one exception is the overlay database and its status file, which codeql-action restores into a pull request's analysis while GitHub's overlay flags are on. Both stay with those flags, a named residual (CodeQL).
- A linter, formatter or cargo plugin runs from the stack's own pin file where the stack has one. Otherwise it runs from mise, installed by mise's official action. A per-tool action is not used. Each one runs on Linux alone, records a lower integrity tier, or resolves its own version at run time. None gives a contributor the same tool locally.
- release-plz runs from its mise pin, not from
release-plz/action. The action has no command that runs the semver check alone, and it installs cargo-semver-checks in the job that holds the releaser token.cd.ymlrecords the deviation. - A hand-rolled step closes a gap no tool closes and names that gap in a comment. Examples: the mise lockfile assertions and the lockfile asset check under Tools, and the ShellCheck canary below.
- Every
run:script stays under 4 KB (Known defects). - No repository test reads a workflow file. actionlint and zizmor are the readers of workflow YAML. A property
neither checks (a step order, a trigger set, a matrix, a permission) is held by construction. The reusable
workflow or the one gate task that sequences it holds it. A test that parses
ci.ymlfor its shape is glue, and it goes. - A caller's own lines in
ci.yml, such as the gate's start, thejdx/mise-actionsettings and the frozen install, are held by code-owner review of.github/workflows/. - On a pull request, the
commitsworkflow runs commitlint over the pull request range and over the subject the squash writes, with(#N)appended. For a one-commit pull request that is the commit's own subject (Merge settings). Its refusals run on a push and daily too (Gate). - The range lint's log stops at 64 KiB on a runner, so the range lint runs without
--verboseand prints the problems and the summary alone. Its exit code covers every commit either way. - The subject lint runs through a generated wrapper that turns every commitlint ignore off, the caller's and
commitlint's defaults alike, so a header an ignore skips in the range is still checked where it lands. The range
lint and the commit hook keep the caller's ignores. A
Revert "..."or merge subject fails the subject lint. The revert form (Commits) and squash-only merging make that right, and a pull request GitHub's revert button opens passes once it is retitled. - The wrapper is written to
RUNNER_TEMP, outside the checkout, so no tracked path takes part. It resolves eachextendsof the caller's config from the caller's config file and hands commitlint absolute paths. Outside anynode_modules, Bun answers a bare name from its install cache or the registry, whateverbun.lockpins. Both commitlint starts therefore pass--no-install, so such a name fails in place of a fetch pastbun.lock. - Before its install, the workflow refuses a root
.configand a rootpackage.yaml, in any case, and its JSON step refuses a rootpackage.jsoncosmiconfigkey (Gate). Both commitlint steps namecommitlint.config.js, which stops commitlint's other config names and its own package keys. - Before its install, the
commitsworkflow refuses a trackednode_modulesand any tracked path below one, at any depth and without regard to case, and every tracked symbolic link.bun installkeeps a tracked package directory at the locked version and a trackednode_moduleslink as it finds it, with no check againstbun.lock, and Bun then runs that copy. Through any other link Bun reads a filebun.locknever named. The job runs beside every caller's gate, whatever the caller's stack, so it holds the refusal itself. - That step lists the tracked paths with
core.quotepathoff. git otherwise escapes a byte past ASCII as octal, and a case-folding match never sees a variant spelled with one. - It refuses a tracked env file at any depth, any of the eight names Bun loads, without regard to case.
bun installloads one even frozen and without scripts, and no flag stops that. A tracked.envpointingBUN_INSTALL_CACHE_DIRat a committed folder installed a changed package withbun.lockunchanged. Bun loads one from the directory each start runs in, so a nested one reaches a start below the root. - A step of its own, before the install, refuses a tracked
bunfig.toml, in any case, holding any key but[install] minimumReleaseAge, because a preload in it runs inside commitlint and[install.cache] dirredirects the install's cache. A link or a file that does not parse is refused too. Everybunstart in the job passes--no-env-file(Gate). - A step of its own,
Refused JSON keys, also before the install, reads every trackedpackage.json,tsconfig.jsonandjsconfig.json, at any depth and in any case, with Python'sjsonmodule (Gate). It refuses a key repeated in one object at any depth, and a file that does not parse: a trailing comma, a comment, a byte order mark,NaN, or a nesting deeper than Python reads. - The same step refuses a
package.jsonthat is not an object or that carriespatchedDependencies, because a frozen install without scripts still applies a patch. It refuses anexportskey in any trackedpackage.jsonand a rootpackage.jsoncosmiconfigkey (Gate). - It refuses
pathsandbaseUrlin a project config and in every file itsextendschain names, because the job runs commitlint under Bun (Gate). It also refuses anextendsnaming a package, an absolute path, a missing file or a file outside the checkout, since the step cannot read any of those. - The
workflowsworkflow runs actionlint and zizmor. The gate proves ShellCheck ran by writing a canary workflow with an unquoted variable and requiring the finding back. actionlint exits 0 with ShellCheck absent, and no flag changes that. - zizmor reads
--collect=all .github, with--strict-collection, in every gate row and in the shared job. No ignore file hides a workflow from that input. It collectsdependabot.ymland the composite actions under.github/actions, and it never walksnode_modules, a worktree or a submodule. - A local action lives under
.github/actions/alone. zizmor reads.github, whileuses: ./<path>runs an action from anywhere in the checkout. The sharedworkflowsjob therefore refuses a trackedaction.ymloraction.yaml, its name compared folded, whose path does not start with.github/actions/in that exact spelling (the one CI copy, Gate). It also refuses one under that directory whose name is spelled in another case, which zizmor never reads and a case-insensitive runner opens. - The runner also runs a local action from a directory holding a
Dockerfileand no metadata file. No tool in the set reads a Dockerfile wherever it sits, so review holds one. That is a named residual. - On a case-insensitive checkout, a case variant of a tracked path can merge two tracked paths into one file, and
on Windows so can an 8.3 short name such as
GITHUB~1. The local gate then reads a file the diff does not show, while the shared jobs on Linux read the real files.CONTRIBUTING.mdnames it under Troubleshooting, and no gate refuses it. - The shared
workflowsjob runs beside the caller's gate, not after it, so a red gate stops nothing there. Before any mise command reads the checkout, the job refuses another mise config, lock or rc file, a root file named like a program a gate starts, and a link at the root or under.config,.miseormise. ItsRefused keysandRefused lock keyssteps then readmise.tomlandmise.lockwith Python'stomlliband refuse any key outside the gate's allow-lists (Tools),[settings.aqua]included, which holdsgithub_attestationsalone. A job holding a token loads nomise.tomlwhose keys are unchecked. - The steps also refuse a form the gate does not read: a
[tools]entry that is neither a version nor a table, the[[tools.<name>]]array of tables included, a[tools],[tool_config]or[settings]that is not a table, and amise.locktool that is not a list of tables. mise reads an array-of-tables entry, a postinstall included. The lock step checks the fields of a nestedplatformstable as it checks a quoted"platforms.<name>"one.jdx/mise-actionexportsMISE_TRUSTED_CONFIG_PATHSfor the workspace to every later step, and mise evaluates exec templates on any load of a trusted config. - The steps also hold every tool key in
mise.tomlandmise.lockto a registry name orgithub:<owner>/<repo>, and everymise.lockbackend toaqua:orgithub:<owner>/<repo>. mise runs options written in brackets after a tool key or a backend,postinstallamong them. A key such astaplo[postinstall=...]would run its command in the job's ownmise install. - The steps also hold every version to a plain release, a digit then letters, digits,
.,+and-alone, matched whole: a[tools]string or tableversioninmise.toml, and eachmise.lockentry'sversion, where a missing or non-string one is refused too. mise reads apath:,system,ref:,prefix:orsub-version as something other than a release, so the steps refuse one before the install, beside mise's own locked-mode refusal. - Its
Held tool sourcesstep then holds eachmise.lockandmise.semver.lockentry to one repository, beforemise install. A registry name's backend is the first onemise registry --json <name>names, run outside the checkout, and a name the registry does not hold fails. Agithub:<owner>/<repo>key's backend is the key. Each platform table, in both spellings, holds a url matchinghttps://github.com/<owner>/<repo>/releases/download/<tag>/<file>and aurl_apimatchinghttps://api.github.com/repos/<owner>/<repo>/releases/assets/<digits>, both whole and in exact case.<owner>/<repo>comes from that backend or key.<tag>and<file>are one segment each, of letters, digits and._+-, and neither is.or.., since a dot segment after a matching prefix resolves to another repository. A missing backend, url orurl_apifails. Before a download, mise checks only the version numbers in a url's release tag and file name, never its owner, repository or host. - zizmor's online audits run in the shared
workflowsjob alone, on every pull request and daily fromaudit.yml. That job is the one CI job whose steps name the job token: its zizmor step and its lockfile asset check under Tools. It installs taplo, ShellCheck, actionlint and zizmor alone, each routed by mise's registry, so its install names no token. Two exceptions stand elsewhere:- a caller job's
mise install --lockedstep for a tool mise's registry does not route, below; - a job that only downloads a release asset with
gh release download, checks out withpersist-credentials: falseand runs no repository code, as theloaderjob in enshrouded-mods'cd.ymldoes.
- a caller job's
- In CI the gate runs zizmor with
--offline, and the gate step holds no token. Locally the gate runs zizmor online whengh auth tokenanswers, handing the token to zizmor's process alone, and passes--offlineotherwise, never as a silent default. That token comes from gh's credential store, so an emptyGH_CONFIG_DIRleaves it reachable. gh auth tokenruns under a short deadline of its own, and a timeout reads as no token, so zizmor runs offline. That is no row deadline (Gate): without it a hanging keyring read hangs the local gate. The deadline is the runtime's own, Bun's spawntimeoutor Go'sexec.CommandContext, with no tree kill.- Every other process the gate starts runs without any token variable a gate tool reads,
GITHUB_API_TOKENandMISE_GITHUB_ENTERPRISE_TOKENincluded. - Inside a job, a step's environment is not a boundary: any step can read the job token from the runner. The job is the boundary, so the token goes to the job that installs no dependencies and runs no build or test.
- Every
jdx/mise-actionstep takes an emptygithub_token, so the action exports no token to later steps. - The two steps that name the job token hand it to
ghand zizmor alone. Each starts mise, and the asset check starts taplo, with the token taken out of the environment, so neither holds it, whichever names a later mise reads a token from. - A locked install reads a registry tool's attestations from mise's versions host. A tool mise's registry does not route queries the GitHub API on every install.
- A job installing such a tool runs the gate's checks of
mise.tomlandmise.lockfirst, in an earlier step of the same job or in a preceding job itneeds:. The preceding job is the stronger form, since the job that holds the token then runs no repository code. Then a step that runs nothing butmise install --lockedsetsMISE_GITHUB_TOKENto the job token, under the job'scontents: read, and that step alone names it. The token already sits in the job, and the unauthenticated limit of 60 requests an hour per runner address fails installs at random. The gate step itself stays tokenless. - A step order inside one job is no boundary, since the token sits in the runner's memory. Installing before the
checks would run an unchecked
mise.toml's hooks in the token step. mise also sendsMISE_GITHUB_TOKENto the host anapi_urloption names when its path has GitHub Enterprise's/api/v3shape, so the checks refuse that option before the token step runs. - A scheduled workflow's header states the requirement its section names and claims nothing tighter (Known
defects).
depsruns at least once a day, and so does everyaudit.ymljob, on that workflow's one cron.codeqlruns weekly. - No job compares a cron string. A job gated on a string its schedule no longer raises skips forever, green, so a workflow runs every job on its one clock.
- After any edit to a scheduled workflow's cron line, the owner confirms the failure notification still reaches a person (Known defects).
- A committed
codeql.ymlcalls the sharedcodeqlworkflow, never default setup. Default setup pins nothing and names checks the repository does not control. - The caller's job is
codeql, and the shared job is namedAnalyze (<language>). Each check run is thereforecodeql / Analyze (<language>), a workflow job's check run under GitHub Actions. - The languages are every language the repository's own code is written in, plus
actions. A configuration file a tool reads is not the repository's code. The caller passes every language,actionsincluded, and the shared workflow adds none. Theactionsanalysis runs beside zizmor. Neither replaces the other. - Every analysis runs the
security-extendedsuite on the CodeQL bundle the pinned action ships,tools: linked. Without it, a server-side flag picks the bundle at run time, and no pin or cooldown sees the change. - The JavaScript and TypeScript extractor starts
nodefromPATH. For those languages the shared job installs Node.js throughactions/setup-nodebefore its checkout, at the version itsnode-version:input names. The job runs in the caller's checkout and reads no file of its own repository. So the version sits on that input in place of a.node-version, and Renovate bumps it under the cooldown. Its tier is a version alone, named by that input. - The shared job restores no TRAP or dependency cache, since it holds
security-events: writeand its upload decides thecode_scanningrule (Workflows). Its init step setstrap-caching: false. Unset, TRAP caching is on for every hosted runner, and a pull request's analysis restores a TRAP cache under a key any default-branch job can write first. It also setsdependency-caching: false, the value an unset input resolves to, so a later action commit cannot turn that cache on. - Nothing stops the overlay database and its status file a pull request's analysis restores while GitHub's overlay flags are on. That is a named residual: planting one takes code already running on the default branch, landing between that branch's own scans.
- The build mode is
nonewherever the extractor supports it andautobuildfor Go, whose extractor refusesnone. A Go caller passesbuild-mode: autobuildin its language's entry. - Under
nonethe C# extractor runs a package restore of its own, which reads no lock file. It can fail, and it can fetch versions the lock does not pin, so it never stands in for the gate's locked restore. - codeql-action falls back from
nonetoautobuildfor C# while a GitHub feature flag is on, and the shared job has no build step for that fallback. The shared job's init step therefore setsCODEQL_ACTION_DISABLE_CSHARP_BUILDLESStofalse, which overrides the flag (Known defects). - A Go analysis reads
_test.gofiles too. The Go extractor skips them by default, so the shared job setsCODEQL_EXTRACTOR_GO_OPTION_EXTRACT_TESTS, and a repository's tests are analyzed as its JavaScript tests already are. A high alert in a test file then blocks a pull request like any other. - The triggers are a push to the default branch, every pull request and a weekly schedule, with no path filter.
A filtered run leaves a required check pending and the
code_scanningrule without a result. - A pull request's analysis groups by its ref, and a newer push cancels the older run. A push to the default branch groups by its commit, since GitHub keeps one pending run per group and cancels the older one. A burst of pushes then keeps every analysis.
- The category is
/language:<language>and never changes. Renamingcodeql.yml, its job id or the category leaves a stale configuration on the default branch. TheCodeQLcheck then concludesneutralon every pull request, which passes, until that configuration is deleted on the tool status page. - Removing a language includes deleting its configuration from the default branch, because the
code_scanningrule waits on every pull request for a result nothing uploads. - An alert is fixed or dismissed. A dismissal names its reason and carries a comment saying why the alert does
not apply. The API takes
dismissed_commentonly in the dismissing call, so the rule binds a dismissal as it is made, and an existing dismissal keeps whatever comment it carries. - Code scanning runs in a public repository. Under a personal account a private repository cannot run it.
- Conventional commits, enforced by the
commit-msghook (Hooks) and again by thecommitsjob. Types come from the specification. Scopes live in.github.amrom.workers.devmit-scopes.json, an array of{scope, covers}objects, whichcommitlint.config.jsreads andCONTRIBUTING.mdpoints at. - A scope never repeats the type.
docs(docs),ci(ci)andtest(tests)take the bare type,docs:,ci:andtest:. A scope stays only where it adds information. - A header lands at most 72 characters, because github.com cuts a subject at 73. The
commitsjob lints what lands: a pull request's title, or a one-commit pull request's subject, with(#N)appended (Workflows). An author therefore writes 64 to 67 characters, fewer as the pull request number grows. Thecommit-msghook checks 72 as written. - Renovate's headers are shortened by the presets'
commitMessageActionandcommitMessageTopic, never by exempting the bot. A dependency whose name runs a major bump's header past 72 gets a shortcommitMessageTopicin its preset, as the base preset gives@eslint-community/eslint-plugin-eslint-comments. A Renovate or Dependabot pull request whose landed header still runs past 72 fails, so it is closed and its bump is taken by hand. - The shared
commitlint.config.jsignores a message signed off bydependabot[bot], because its body carries release notes past the line limit. It reads.github/dependabot.ymlthrough theyamlpackage and takes eachupdates[].commit-message.prefixandprefix-development. It skips a commit only on a pull request Dependabot opened, when the header starts with one of those, then a colon and a space, and a line after the header starts with theSigned-off-by: dependabot[bot] <trailer. Thecommitsjob tells it the pull request's author throughCOMMITLINT_DEPENDABOT_PULL_REQUEST, set totrueon a Dependabot pull request alone. A forged trailer on any other pull request is linted. The commit hook lints one too, unless the environment sets the variable, which an env filebun xloads can do. CI sets the variable itself and refuses a tracked env file (Gate). - A header or title that merely carries the text is still linted. A repository with no
dependabot.ymlskips nothing, and a file that does not parse fails the lint. Adependabot.ymlpast 64 KiB fails before it is parsed, since theyamlpackage checks for duplicate keys in quadratic time. The pull request title and the landed-subject lint still check a Dependabot header. - A commit's type names its effect on the people who use what the repository ships.
feat,fix,perfandrevertare user-facing. Every other type is hidden from the changelog (Releases).- A gate, hook or tooling change is
chore, and a change to the repository's own workflows isci, because users never run either. - In
zachthedev/.githuba reusable workflow or preset change isfeatorfix, because callers run it. - In a template, a change to a file a clone copies is
featorfix, a copied document included, so an aligning repository learns to copy it. A document no clone copies staysdocs. A pin bump stayschore, because the clone's own Renovate moves it. buildcovers how the artifact is built when users see no difference. A build change users see isfeatorfix.docsis hidden in every kind, because a document reaches its readers from the default branch. A template's copied document takesfeatorfixinstead, as above.- A dependency whose code runs where users are is
fix(deps). One that only builds, checks or tests ischore(deps). !andBREAKING CHANGE:mark a break users see. A contributor-only break carries neither, because either cuts a release.- A revert is
revert(<scope>): <what is undone, in fresh words>, with aRefs: <sha>footer naming each reverted commit. The scope follows the scope rules above and is omitted when none applies. Arevert:prefix on the reverted header overflows the header limit, and this form fits by construction. It is the Conventional Commits specification's recommendation. git's ownRevert "..."subject is never used: commitlint skips it, and release-please cannot parse it. - A pull request's title takes the type of its most user-facing commit, and
!when any commit breaks something users see. A squash of several commits lands the title as its header, so a!in a commit's own header is lost unless the title carries it. ABREAKING CHANGE:footer in a commit's body survives the squash. - A body paragraph never opens with a bare type, because release-please reads it as a second change.
- A commit message never writes a skip instruction such as
[skip ci], in its subject or its body. GitHub starts no push workflow when one appears anywhere in the head commit's message. A squash carries every commit's body into that message, so one quoted instruction leavesci,cdandcodeqlunrun on the merge.
- lefthook in every stack.
commit-msglints the message.pre-pushrunscheck:quickwhere it exists, else the gate. - A Go repository pins lefthook as a
go.modtool directive, because lefthook is a Go program and the stack leans on its native abilities. Itspackage.jsoncarries commitlint,yamland Prettier alone. trustedDependenciesinpackage.jsonnames lefthook alone in every repository that installs lefthook throughpackage.json,bun-serviceincluded. Naming a list replaces Bun's built-in allow list, which also runs esbuild's and workerd's install scripts. Each of those checks for the platform binary its optional dependency installs frombun.lock, and fetches one from the registry outsidebun.lockonly when it finds none. A Worker repository's gate and tests pass with both blocked.- An empty
trustedDependenciesdoes not hold past the install that writesbun.lock(Known defects). - A hook job starts its tool in the one spelling,
bun x --bun --no-install <tool>(Gate), with no presence check. A hook runs in the contributor's own environment and clears no inherited variable, because a hook is not a control: CI's gate andcommitsjob decide the merge. - The hook script
lefthook installwrites fails open where lefthook itself resolves fromnode_modules: Bun, and any kind installing lefthook throughpackage.json. With no lefthook binary found, it printsCan't find lefthook in PATHand exits 0, and the commit or push goes through unchecked. - That script hard-codes the installing checkout's
node_modulespath. A linked worktree with nonode_modulesof its own therefore runs the installing checkout's lefthook. - A fresh clone has no hook until its install runs
lefthook install. - Every lefthook repository refuses a tracked
lefthook-localor.lefthook-localfile, any extension, and gitignores both. A.config/lefthook-localfile falls under the root.configrefusal (Gate). lefthook merges any of them overlefthook.yml, so a tracked one can turnpipedoff and replace a hook's jobs. - lefthook merges a branch's
.config/lefthook-local.*too, and a local job with a guard job's name replaces it before any job runs. A hook job that guards against something therefore catches an accident, never a hostile branch. Reading the diff before running anything on a pull request branch coverscommit-msgas well (Gate). - A Go repository's hook runs lefthook through
go tool, which refuses when lefthook cannot run. - lefthook runs
pre-pushon every push, the first push of a branch to an empty remote included, because the push hook's job names no glob. A first push runs the gate like any other. - CI's
commitsjob and gate are the control, andCONTRIBUTING.mdsays so. - No
.githooks/.
- Prettier formats everything it owns. The configuration is identical in every repository, so a shared file is byte-identical across repositories. A diff means a real difference.
.prettierrccarries only the keys whose values differ from Prettier's defaults, and the kickstart's file is the source.proseWrapis not written. Prose stays as the author wrapped it.- One exact Prettier version across every repository, never a range. A bump is one pull request per repository.
.editorconfigagrees with the config for every file Prettier owns, for the editors that read it.- Every Prettier run, the row's, a hook's and the
formatscript's, passes--config .prettierrc,--ignore-path .prettierignoreand--no-editorconfig, with no glob.--confignames the one config (Gate). Under--configalone Prettier still reads a nested.editorconfig, which can reindent a subtree. --ignore-pathkeeps.gitignorefrom narrowing the check, so.prettierignoreitself names.claude/worktrees/and every other local-only path. A generated file the owning tool formats goes in.prettierignoretoo.- Every
.prettierignorepattern is anchored to the root, with a leading slash where it has no other, so it cannot hide a same-named file deeper in the tree. .prettierrcholds formatting options alone. A Prettier config can name a plugin or a shared config, and Prettier loads either as code before it checks anything, so a reviewer refuses apluginskey or a string value..prettierrcis gate config underCODEOWNERS(Gate).- C# is formatted by CSharpier at the same width.
- taplo formats every TOML file in every kind, from
.taplo.toml. A repository carrying TOML pins taplo inmise.tomland runs it as a gate row. - The taplo row lists the tracked TOML files itself, folding case, and hands them to taplo by name, because
taplo's own walk skips a name such as
docs/BAD.TOML. An exclude in.taplo.tomlthat drops a named file then fails the found-list comparison (Gate), where taplo alone exits 0. - The row also passes
--config .taplo.toml, because a baretaplo fmt --checkchecks zero files and exits 0 whenTAPLO_CONFIGnames a config matching nothing. - taplo reads no
.gitignore, so the excludes in.taplo.tomlare the one control over what a baretaplo fmtwalks. - A repository joining the standard pays one formatting-only commit touching every file Prettier owns.
- An inline waiver in code names the exact rule it waives and gives a reason. Each stack's own linter enforces that, and the gate refuses only the forms no tool checks.
- A reason holds a letter or a digit once its default-ignorable code points are removed. The strip comes first, because the Hangul filler characters count as letters. The linters the set runs accept a reason of invisible characters alone, such as a soft hyphen or a Braille blank, so each stack's gate holds the rule itself.
- U+13441 and U+13442, two Egyptian hieroglyph blanks, are letters that print blank in some fonts, and they pass. That is an accepted residual, so no comment or document claims that every accepted reason prints.
- A waiver in workflow YAML lives in
.github/zizmor.yml(Gate), and a workflowrun:block carries no ShellCheck directive (Gate).
- golangci-lint runs nolintlint with
require-specific,require-explanationandallow-unused: false. Every//nolintthen names its linter and gives a reason, as//nolint:<linter> // reason, and an unused one fails. - A nolint names a linter, never a rule, and gosec holds many rules. Every gosec waiver is therefore
// #nosec G<nnn> -- reason, under gosec'snosec-require-rulesandnosec-require-justification, which suppress the named rule alone. The gate refuses//nolint:gosec. - golangci-lint drops gosec's errors about a malformed
#nosec, so a bad one shows only the finding it failed to waive. A stale#nosecgoes unreported. The owner accepted both costs for a rule-exact waiver. - The gate refuses a nolint or
#nosecreason that holds no letter or number once its default-ignorable code points are removed (above). nolintlint'srequire-explanationand gosec's justification check accept one. - go-test-coverage runs with
force-annotation-comment: true, so acoverage-ignorecomment carries a reason. - The gate refuses the forms golangci-lint honors and nolintlint misses:
- a nolint comment with extra leading slashes, such as
///nolint; - a nolint list naming
allin any case or spacing, or namingnolintlint; //lint:ignoreand//lint:file-ignore;- a generated marker golangci-lint's
laxmode reads, in any tracked.gofile the generator does not list:code generated,do not edit,autogenerated fileor* generated by: swagger codegen, case-folded, abovepackageor in the comment group right after it. The gate regenerates a listed file and diffs it (Authoring), so a hand edit under the marker fails.
- a nolint comment with extra leading slashes, such as
- ESLint runs the eslint-comments plugin's recommended config plus its
require-descriptionrule. Everyeslint-disablethen names its rules, gives a reason after--, closes its range, and fails when unused. ESLint alone has no setting that requires a named, described directive. - typescript-eslint's
ban-ts-comment, instrictTypeChecked, bans@ts-ignoreand@ts-nocheckand requires a description on@ts-expect-error. It reports every directive shape tsc honors.@ts-expect-errorcannot name a TypeScript error code that anything checks, so its description is the reason. - The gate's own ESLint rule,
gate/visible-reasoninscripts/eslint-plugin.ts, reads every comment ESLint parses: each ESLint directive label, and each@ts-expect-erroror@ts-ignore. It refuses a reason with no letter or digit once default-ignorable code points are removed (above). It reads the comments ESLint's parser returns, never the file's text, so a string that holds comment text neither hides a directive nor fakes one. - ESLint applies a directive to the reports at its own position. A directive that names
gate/visible-reasontherefore hides the rule's report on itself, and a block disable naming it hides every report up to its enable. The lint row refuses every report of the rule that ESLint lists undersuppressedMessages, where no directive can remove one. - A comment never configures ESLint. eslint-comments'
no-useallowseslint-disable,eslint-enable,eslint-disable-lineandeslint-disable-next-linealone, so a configuration comment,global,globals,exportedandeslint-envfail the lint. A rule's setting and a global live ineslint.config.ts. - A configuration comment, such as one setting
gate/visible-reasontooff, turns a rule off for its whole file, so the rule reports nothing and nothing lands insuppressedMessages. One settingno-usetooffdoes the same forno-use. The lint row therefore runs ESLint a second time with--no-inline-config, which reads no comment as a directive or as configuration. It refuses every report there from a rule that reads comments:gate/visible-reason,ban-ts-commentand the eslint-comments rules. no-usereports at column -1, so a next-line directive naming it hides nothing. A block disable naming it moves its report intosuppressedMessages, and the second pass reports it again.- A byte that is not UTF-8 before a directive reads alike under tsc, ESLint and Prettier, so a directive and its refusal see the same text. Bun's runtime decodes such a byte differently, a named residual with no refusal.
- The gate refuses the text of Prettier's ignore comment, in any case and in prose too, in every file the format
row checks. A path the committed
.prettierignorenames is not checked.
- The workspace sets
allow_attributes_without_reason = "deny"andallow_attributes = "deny"under[workspace.lints.clippy]. A hand-written waiver is therefore#[expect(..., reason = "...")], and a staleexpectfails as an unfulfilled expectation under-D warnings.allow_attributesleaves alone theallowthat clap's derives emit. forbidfails the build wherever a derive macro emits a groupallow, as clap's#[derive(Parser)]emits#[allow(clippy::restriction)], which rustc refuses (E0453).- Under
denya crate-level, reasonedallowof either lint switches its check off. The gate therefore refuses any lint attribute namingallow_attributes_without_reasonorallow_attributes. - With any lint set under
[workspace.lints.clippy], theallandpedanticgroups takepriority = -1, or clippy fails withlint_groups_priority. - The gate reads each Rust source as tokens (proc-macro2), never as text, so its refusals catch an attribute inside
cfg_attrtoo. It refuses everyallow, bare or gated. clippy'sallow_attributessees only the attributes the host's cfg keeps, and a#[cfg_attr(not(windows), allow(...))]passed both it and a text match on Windows. - The gate also refuses:
- a root
Cargo.tomlthat does not set both lints todeny; - a
reasonwith no alphanumeric character outsideDefault_Ignorable_Code_Point, read after its escapes decode, soreason = "\u{3164}"is refused (above); - an
expectnaming a lint group, such aswarnings,unusedorclippy::pedantic, since a group is not a rule and clippy accepts one; rustfmt::skipin every form;- cargo-machete's ignore metadata in any
Cargo.toml, a waiver no tool asks a reason for; - a member manifest whose
[lints]is anything butworkspace = truealone, since such a crate escapes the workspace setting.
- a root
@generatedneeds no refusal while the rootrustfmt.tomlleavesformat_generated_filesat its default,true.
- StyleCop's SA1404 requires a
Justificationon every[SuppressMessage], and rejects a missing, empty or whitespace one and<Pending>. The root.editorconfigturns every other StyleCop rule off through the eight StyleCop category keys. StyleCop's newest release is a prerelease from 2023, which the owner accepted, pinned exactly. - The root
.editorconfigalso setsdotnet_diagnostic.SA0001.severity = none. SA0001 has no location, so the category keys never reach it, and it fails a build that treats warnings as errors. .editorconfigis lint config underCODEOWNERS(Gate), as.golangci.ymlandeslint.config.tsare. A reviewer refuses agenerated_codekey and adotnet_diagnostic.*.severitybelow warning as config-level waivers, sincegenerated_code = truestops every analyzer and leaves no SARIF record. No gate refuses those keys. The gate keeps its location rule for a nested.editorconfigand its refusal of.globalconfignames (Gate), and the SARIF audit below catches a key that silences a rule that fires.- Removing the StyleCop reference and relocking turns SA1404 off. The analyzer canary (below) then turns the gate red: winget-nudge's refused all four projects with "loaded no SA1404". The canary is therefore the control. A gate without it requires StyleCop at its pin, as a direct dependency, in every C# lock file.
- The gate refuses
#pragma warningin every form,restoreincluded, because no analyzer checks a pragma for an ID or a reason. Arestorealone does nothing, so refusing it keeps the rule to one sentence at no cost.#pragma checksumstays allowed. A compiler warning (CSxxxx) then has no inline waiver, only the root.editorconfig, since[SuppressMessage]cannot suppress one. - The gate also refuses:
#nullable disablein every form;#line hidden, which hides every analyzer finding below it;- a
[SuppressMessage]naming SA1404, since a reasoned self-waiver can reach a whole project; - Roslyn's generated markers on any file the repository's own generator does not produce: a file name Roslyn
reads as generated, an
<auto-generatedor<autogeneratedcomment anywhere in the file and in any case, andGeneratedCode. A generated file loses its analyzers and its nullable checks. The gate regenerates a produced one and diffs it (Authoring), so a hand edit under the marker fails; [UnconditionalSuppressMessage], which SA1404 does not read;- every ignore form CSharpier honors, the XML forms included.
- The gate matches those refusals as the compiler reads the file. It decodes
\uescapes before it matches an identifier, sinceGenerated\u0043odedefeats a plain text match. It matches a directive over the whole text with Roslyn's own line breaks and whitespace, U+2028, U+2029, U+0085, a bare carriage return, U+FEFF and U+001A included, never line by line. - The build row adds two checks. A SARIF error-log audit refuses any in-source suppression with an empty justification or of SA1404, however it is spelled. An analyzer canary requires SA1404 to run in every compile.
- The gate refuses a
Justificationwith no letter or digit once its default-ignorable code points are removed (above). SA1404 accepts a Braille blank alone. - The SARIF audit and the canary cover the solution's compiles.
cake.csis a file-based program and writes no error log, so neither reads it. Review ofDirectory.Packages.propsandcake.packages.lock.jsonholds an analyzer exclusion conditioned onFileBasedProgram, and review holds the oneGlobalPackageReferenceline for StyleCop. Nothing checks that every project takes the same StyleCop version. - Known limits: SA1404 accepts any non-empty reason, and the gate's letter-or-digit rule is the whole check beyond
it. The null-forgiving
!waives a nullable warning with no name and no reason, and nothing refuses it. A project-file switch such asNoWarnorRunAnalyzersis caught by the canary or by review. [ExcludeFromCodeCoverage]becomes a refusal on the day a coverage threshold lands.
- ShellCheck has no setting that requires a code or a reason. In a tracked
.shscript, any line holding a# shellcheckdirective is therefore exactly# shellcheck disable=SCnnnn[,SCnnnn] # reasonas its whole comment, and the gate holds it to that form. A partial match would miss a directive with several keys. The reason holds a letter or a digit once its default-ignorable code points are removed (above). - A repository that tracks shell scripts runs a ShellCheck row over them, with
--norc,SHELLCHECK_OPTScleared, a printed count and a failure on zero.
- Self-hosted Renovate runs at least once a day in every repository through the shared
depsworkflow inzachthedev/.github, under the updater app. It is the only bot that opens pull requests. .github/renovate.jsonextends one kind preset fromzachthedev/.github//renovate/on its default branch, and adds only what is true of that repository alone. The.githubrepository validates every preset change before it merges. That is the check on a change that reaches every repository on the next run. A preset change takes effect at its merge to the default branch, with no release or tag, since each repository extends the presets with no ref.- Renovate reads the first config file it finds in its own list: a root
renovate.json,renovate.jsoncorrenovate.json5ahead of.github/renovate.json, and a.renovatercin any of its forms or apackage.jsonrenovatekey after it. The shareddepsjob setsRENOVATE_CONFIG_FILE_NAMESto.github/renovate.json, and Renovate puts the names it lists ahead of its own..github/renovate.jsonthen wins wherever it exists, and a root file added beside it is never read. With the file missing, Renovate falls back to its own list. The sharedcommitsjob therefore refuses a tree that does not track.github/renovate.jsonas a file, in that exact spelling (the one CI copy, Gate). - The base preset holds the standard, and no preset or repository file restates a Renovate default:
config:recommendedwith digest pinning and abandonment flags- new pull requests in the Monday window, every other run rebasing open branches
- a three-day
minimumReleaseAgeundertimestamp-required - one pull request per ecosystem for minor and patch bumps, and for digests where a manager pins one
- a major on its own branch
- security fixes ignoring the window and the cooldown
- lock file maintenance in the same window
- the dependency dashboard on
- no automerge
- a branch rebased only on conflict
- commit types derived:
fixfor a runtime dependency,chorefor tooling,cifor a workflow, scopedeps - labels:
dependencieson every pull request,cion a workflow bump,securityon a fix
- A Renovate group takes the highest type among its members, lowest first
chore,ci,build,fix,feat. A group holding anything that ships therefore landsfix(deps). A group rule sets nosemanticCommitType. - Where a derived type misses what ships, the preset or the repository file types it by the Commits rule. A
toolchain whose runtime ships is
fix(deps):- the
go-clipreset types thegoandtoolchainlinesfix, because they pick the standard library linked into the binary; - the
csharp-installerpreset types the .NET SDK inglobal.jsonfix, because the installer ships that SDK's runtime (Tools); - the
rust-cratesandrust-apppresets type arust-toolchainbumpfix, because std links into the shipped artifact. Under lockstep that bump releases every crate (Versioning).
- the
zachthedev/.githubtypes a pin inside a reusable workflowfix, because callers run it.- Lock file maintenance lands
chore(deps)in every preset, so a release always needs a user-facing change. A refreshed transitive dependency ships with the next release a user-facing change cuts. An advisory against one does not wait for that release: it takes the alert path below, and its fix isfix(deps). - A
zachthedev/**bump's SHA is on.github'smain. The reviewer checks it withgh api repos/zachthedev/.github.amrom.workers.devpare/main...<sha>, readingbehindoridentical. - Renovate's pull request bumping the
zachthedev/.githubworkflows is how a repository takes a new release. It is rebased onto the default branch first. Once its fresh CI is green, the owner approves it as code owner, and it merges without--admin. The copies the release names, such asdeps.yml's text orcommitlint.config.js, land as a commit of their own after it, since a copied file can depend on the pinned job. The pull request is closed and the bump taken by hand only when it goes red on its own. - The Monday window's own pull requests keep a quiet repository active, so its scheduled workflows stay enabled (Known defects).
- Security fixes come from Dependabot alerts (Dependabot). Renovate fixes a direct dependency in every ecosystem
and an indirect Go module, because
go.modnames it. A transitive Cargo or NuGet advisory is Dependabot's: its security update opens the pull request inrust-crates,rust-appandcsharp-installer. Renovate opens nothing for a transitive Bun advisory, and no other bot does either. The dailybun run auditreports it, and it is fixed by a direct bump or by hand from the alert withbun audit fix. Renovate'ssecurity:gomodIndirectSecurityUpdatespreset is never used. It disables the modules behindtooldirectives. - The cooldown:
- Every version waits three days after its release. A release with no timestamp waits forever, so every pin resolves on a datasource that carries one. A git submodule pointer carries none.
- The cooldown is never lowered, excluded around or bypassed without auditing the version. A hand pin ahead of the cooldown records its audit in the commit body. Another repository inherits by reading that record, never by copying the pin.
- The base preset's
zachthedev/**rule is the one standing exemption. A new tag of the set's own repositories is the author's own work, so it waits for nothing. - A bare
bun x <package>honors only the user-level cooldown, so nothing the repository controls gates it. - Lock file maintenance runs the package manager directly and takes no Renovate cooldown. The ecosystem's own
file carries one where it exists, with the reason in the file. The updater and CI containers carry no other
configuration. Bun:
bunfig.toml. Cargo:.cargo/config.tomlwith[registry] global-min-publish-age, once the pinned toolchain ships the key (Known defects). NuGet and Go have no such file, and a repository in those ecosystems says so inCONTRIBUTING.md. - A git submodule pointer move is a dependency change no cooldown observes. That is one reason a dependency comes from a registry, not a submodule.
- No hand-rolled test guards the cooldown settings. The ruleset's required review is the control.
- The updater's image is pinned by tag and digest in the
depsworkflow alone. The tag is looked up on Docker Hub, which records a push time (Known defects). The image is pulled fromghcr.ioby digest. The digest is content-addressed, so no step compares the two registries. The workflow caps the Docker Hub lookup at ten pages. The registry refuses anonymous pagination past a thousand tags, and Renovate then drops every timestamp. The secret scanner's image is pinned the same way on its action'sversioninput, which the github-actions manager does not read, so the base preset's regex manager moves its tag and digest. Its second pattern reads theversionline alone. Its update and the github-actions manager's move of the action's own line, the SHA and its comment, then rewrite different lines of one pull request.
- An advisory check blocks on what a change adds to something already published, never on what the world discovers about it.
- Every pull request runs
dependency-review-actionagainst its base atfail-on-severity: high, scopes runtime and development. - The release pull request runs the same action against the last release tag through
base-ref, scope runtime. A first release uses the root commit. Users and production hold the last release, not main. - Nothing blocks after the merge: not the tagged build, not the publish, not the deploy. A failed release is recovered under Tags. A service deploys through an advisory and rolls back natively. A library or installer publishes through an advisory. Users hold the old version until the next one.
- The waiver is
allow-ghsaswith a comment naming the advisory, what it blocks, why shipping is safer and the removal condition. A red advisory check blocks the merge like every required check, an--adminmerge included (Branch rules). - A known advisory against an unchanged action pin is waived per advisory in
.github/zizmor.ymlunderrules.known-vulnerable-actions.config.allow, with the four-part commentallow-ghsasneeds. - Go adds
govulncheckbeside both advisory checks, because it blocks only on a reachable call. The Go gate runsgovulncheck ./...andgovulncheck tool, because./...never reads the modules behindgo.modtool directives. - A tool-tree advisory with no fixed version is held by pinning the tool back, or by disabling
govulncheck toolwith a dated reason at its drift site until a fix ships.CONTRIBUTING.mdsays so. - Live whole-tree readers run as reports, never as checks:
bun auditdaily,cargo deny check advisoriesdaily,dotnet package list --vulnerabledaily. They run fromaudit.yml, on its own clock. GitHub's database lacks RustSec entries that OSV carries, and the daily report covers those. - Every repository with a
bun.lock, whatever its stack, carries"audit": "bun audit --audit-level=high"inpackage.json, andaudit.yml's daily job runsbun run audit. High is the set's level, and the script is the one home of--ignorewaivers. The dependency graph reads a Bun repository's directpackage.jsondependencies alone, so the daily run is what reads its transitive ones.audit.ymlalso carries daily jobs that call the reusablecommitsandworkflowsworkflows, so the shared refusals and zizmor's online audits of the pinned actions run without a pull request. A red run is the report. - The advisory check sees direct npm packages only under Bun, no NuGet package under central package
management, and full lockfiles under Cargo.
CONTRIBUTING.mdstates which legs the check covers. - A C# repository submits a dependency snapshot on every pull request head and every push to the default branch
(Known defects). The snapshot is generated by
Microsoft.Sbom.DotNetToolfromdotnet-tools.jsonover the restored tree and submitted by the SPDX dependency submission action, pinned by commit, which downloads nothing. A submitter that fetches its scanner at run time is not used. The snapshot counts as coverage only once a compare shows real versions. - A template repository's alerts are fixed first, because its pins are copied into every new repository.
- A tool the stack owns is pinned the stack's way:
go.modtool directives,dotnet-tools.json, cargo for xtask dependencies. A tool no stack owns, such as actionlint, zizmor, ShellCheck and taplo, is pinned inmise.tomlwithmise.lock.mise.lockis excluded from the formatter. - The .NET SDK is pinned exactly.
global.jsonnames the exact SDK withrollForward: patch. CI's setup-dotnet then installs and builds with that SDK alone, and a contributor's machine one patch ahead still runs the gate.global.json'serrorMessagenames the install command and points atsdk.versionwithout repeating the number, and Setup inCONTRIBUTING.mdreads the version fromglobal.json. Renovate rewritessdk.versionalone, so a literal version anywhere else goes stale on every bump. - A self-contained installer ships the runtime of the SDK that builds it, so a looser pin lets two builds of one
commit ship different runtimes. The pin is the SDK carrying the newest runtime past the cooldown, never one
behind what builds ship. Renovate bumps the SDK as
fix(deps), and the bump cuts a release (Updates). - A .NET Framework project references
Microsoft.NETFramework.ReferenceAssembliesexplicitly, withPrivateAssets="all"and its version inDirectory.Packages.props. The SDK adds that package only on a machine lacking the framework's targeting pack, so a lock file written on one machine otherwise fails a locked restore (NU1004) on another. A lock change is proven withAutomaticallyUseReferenceAssemblyPackages=falseas well as with the default. - A backend is chosen for integrity: the one whose entry reaches the higher tier, and
aqua:on a tie.cargo:andubi:record no lockfile integrity, so neither is used (Known defects). Inside the attestation tier the two differ:aqua:checks the signer workflow its registry names, andgithub:accepts an attestation from any workflow in the publisher's repository. - Each tool a repository pins states one integrity tier under Dependencies in
CONTRIBUTING.md, below the shared paragraph every repository copies from the Bun kickstart. The tier names who vouches for the tool's bytes. The tiers, strongest first:- the publisher's build attestation: a workflow in the publisher's repository signed a statement over the
artifact's digest, and mise checks it on every install. mise's lockfile records it as
provenance. - the publisher's signature: the publisher signed the artifact or its checksum file with a key the checking tool carries.
- the registry's record: a registry that never replaces a published version recorded the hash, or signed the package, at publish. npm, crates.io, the Go checksum database, nuget.org and an immutable GitHub release qualify.
- the release's own checksum: GitHub's digest for the asset, or a checksum file in the same release, where the release can still change.
- a hash this repository computed: the sha256 of one download, written into the file that pins the tool. Nothing outside that file records it.
- a version alone: nothing recorded before the install vouches for the bytes.
- the publisher's build attestation: a workflow in the publisher's repository signed a statement over the
artifact's digest, and mise checks it on every install. mise's lockfile records it as
- A lockfile holds a hash and is not a tier. Each tier line names the file that holds the tool's hash, or its version where the tier is a version alone.
- A program Setup names is the contributor's own install, such as git, gh or a C toolchain, and that copy takes no tier. A program in Setup that CI installs at a pinned version, such as Bun, Node.js, mise or a toolchain, takes a line for the copy CI installs.
mise lockcopies GitHub's asset digest, else a checksum file from the release, underaqua:andgithub:alike. It downloads an artifact only to verify an attestation.- "Verified" is never written for a hash check.
- The settings
locked,lockfile,locked_verify_provenance,provenance_api_failures_fatal,github_attestationsandaqua.github_attestationsare set.lockfile_platformsnames the platforms the lockfile pins.[tool_config] lockedis set, because no environment variable reaches it. - mise refuses a version disagreement and a missing platform entry.
mise install --locked --dry-runproves it. mise.tomlandmise.lockare the one mise config and lockfile in the tree. mise merges the sibling lockfile of every config file it discovers, highest precedence first (Known defects). The gate therefore refusesmise.local.toml,.mise.toml,.mise.local.toml,mise.*.tomlandmise.*.lock,.mise.<env>.toml,.config/mise*,.config/mise/**,.config/miserc.toml,.mise/**, amise/directory,.miserc.tomland.tool-versions. The Rust repositories keepmise.semver.tomlandmise.semver.lockas the named exception (Releases).- The gate also refuses a symlink or junction at the root or under
.config,.miseormise, because mise follows a link to a config the name check never sees. mise.tomlholds[tools],[tool_config]and[settings]alone. Amise.tomlcan carry a postinstall, hooks,[env]or tasks, and each of them runs code (Known defects), so the gate holds the file to an allow-list:[tool_config]and[settings]are compared whole against the expected values;- the
[tools]keys are the tools the gate expects, spelled exactly. mise reads tool options written in brackets after a tool's name,postinstallincluded, and an exact key carries none; - a tool entry in any pin file, and the lockfile's
options, carriesversionand aversion_prefixequal to the tool's tag prefix, and nothing else; - the lockfile's keys are allow-listed at the top, entry and platform levels, its
toolstable holds the pinned tools alone, and itslockfile_versionequals 1.
- Every mise spawn asserts
mise.tomlandmise.lockfirst, inside the one place that starts mise, so no row or task reaches mise over an unchecked file. - Every mise call the gate makes,
install,whichandexec, carries four pins besideMISE_URL_REPLACEMENTS:MISE_OVERRIDE_CONFIG_FILENAMES=mise.toml,MISE_OVERRIDE_TOOL_VERSIONS_FILENAMES=none,MISE_ENV=''andMISE_AUTO_ENV=false. mise reads.tool-versionsunder the config override alone, and with auto env on it reads per-platform config files. The pins are the second layer behind the refusal above. - Every workflow that runs mise sets the four pins and the same map at workflow level. A called workflow does not
inherit its caller's workflow-level
env, so each shared job sets its own. Everyjdx/mise-actionstep setsenv: false,export_path: falseandadd_shims_to_path: false, and a later step reaches a tool through itsmise whichpath. A repository that runs a tool through a shim records the deviation at the drift site. Withenvon, the action writesmise env --jsonintoGITHUB_ENV, where a config's[env]template renders with the runner's tokens in reach. - Every job that runs
jdx/mise-actionruns it beforeactions/checkout. The action always runsmise --versionandmise lsand trusts the workspace, so a checked-outmise.toml'sexectemplates would run in that step, before any gate refusal. Withinstall: falseand a pinned mise version, the action needs no repository file, and its bin directory stays onPATHthrough the checkout. - Every stack's gate starts mise with an environment built from an allow-list: what mise needs, plus the pins. It
never passes an inherited environment through, so no
MISE_name from a.envfile, the shell or CI's exported environment reaches mise unless the gate sets it (Known defects). - What mise needs, measured on CI runners, is
MISE_TRUSTED_CONFIG_PATHSnaming the checkout and the proxy variables in both cases, plusHOMEandTMPDIRon Unix andSYSTEMROOT,LOCALAPPDATA,TEMPandTMPon Windows. NoXDG_variable reaches mise. An autoloaded env file could setXDG_DATA_HOME,XDG_CACHE_HOMEorXDG_STATE_HOMEand point mise's data into the checkout, and mise falls back to defaults derived fromHOME. - Before setting a
MISE_variable, the gate removes every case spelling of that name from the inherited environment. On Windows a differently cased inherited name wins over the one the gate sets. - Before any install, the gate reads
mise.lockwith the stack's TOML library, for every tool and every platformlockfile_platformsnames (Known defects). This is a named hand-rolled check, because nothing else reads the lockfile against expectations outside it. It asserts:- the checksum, the backend and the provenance line;
- that the pin's version and the lock's version match the tool's version pattern, ASCII digits and dots, before any url is built, because the version is substituted into the url;
- that
urlequals, byte for byte, the download url built from constants in source: owner, repository, tag prefix and one asset name per platform. No url parser reads it; - that
url_apiis the repository's asset prefix,https://api.github.com/repos/<owner>/<repository>/releases/assets/, followed by ASCII digits alone; - that every platform has an asset constant and every asset constant has a platform;
- that no entry carries a nested
platformstable, and no quoted"platforms.<name>"table names a platformlockfile_platformsleaves out. mise reads both spellings.
- A finding quotes every lockfile value it prints and escapes its control characters.
mise.tomlcarries aurl_replacementsrule that sends the GitHub asset API to an unreachable host, and the gate asserts the rule equals a constant. Every install the gate or CI runs carries the same map inMISE_URL_REPLACEMENTS, because a committed higher-precedence config file lifts a rulemise.tomlalone holds.- A release whose GitHub assets carry no digest and whose aqua entry names no checksum file gets no checksum
from
mise lock. Its checksum is the sha256 of the artifact at the recorded url, computed once and written intomise.lock, and mise checks each install's download against it. The comment inmise.tomlrecords how it was produced. - Those hand-written lines survive a relock at the same version and vanish on a bump, so a bump recomputes them. No mise command writes them.
- The shared
workflowsjob reads every assetmise.locknames, and every asset a Rust repository'smise.semver.locknames, by id through GitHub's API. It requiresbrowser_download_urlto equal the lockfile url, anddigestto equal the checksum where GitHub records one. That digest is the recordmise lockcopied, so the check holds the lockfile to it and adds no independent source. A tool with no digest stays on its computed hash. A lockfile the job reads that names no asset fails it. locked_verify_provenanceverifies against the coordinate the lockfile itself supplies. It arms the downgrade refusal for an entry that claims provenance and replaces none of the assertions.- For a tool mise's registry routes, mise reads attestation bundles from its versions host,
mise-versions.jdx.dev, and verifies them locally. When the host answers nothing usable, mise asks the GitHub API instead. The versions host refuses every repository outside mise's registry. - The assertions run before the install, held by construction: one task asserts, then installs.
- The gate resolves a binary through
mise whichand invokes that path. A human activates mise in the shell. MISE_BACKENDS_<TOOL>overrides a backend from the environment and no setting reports it. The tier statement inCONTRIBUTING.mdnames that gap.
-
release-please in every stack except Rust, which takes release-plz (Known defects). The two never share a repository: release-plz skips any crate whose tag already exists.
-
The job for the release pull request runs in
release-prwithdeployment: false, opened by the releaser app. The publish job runs inrelease. -
The release pull request says
Managed bythe app, not the tool. -
A release is created as a draft, every time. Assets upload and attest against the draft. Whether a human or the publish job flips the draft public is the repository's choice. The draft is not.
publishcalled with no artifacts flips the draft alone, under thereleasereviewer. A service chains its deploy on that job. -
release-please pairs the draft with forced tag creation, because GitHub creates no tag for a draft, and sets
bump-minor-pre-major(Versioning). release-plz creates the tag itself. -
GitHub keeps one running and one pending run per concurrency group, and a newer run cancels the pending one. A release merge's run that waits behind a running release run is therefore dropped when another push follows it, in the shared
release-prjob's group or in a caller's own group (Known defects). The next run's release-please still tags the merge commit,publish.ymlrefuses that tag since it names another commit than the run'sGITHUB_SHA, and the draft stays a draft. The recovery by kind:bun-toolingattaches nothing, so the draft is flipped by hand.bun-serviceflips the draft by hand, then deploys the tag as itsdocs/deploy.mdsays.go-clidispatchescd.ymlon the tag's ref, which rebuilds and publishes at the tag's commit.csharp-installercuts the next version (Tags), since a build at a later commit cannot passpublish.yml.rust-cratesandrust-appneed none. The release job takes no group and runs on the release merge's own push, so the drop never reaches it.
-
The changelog carries user-facing changes alone (Commits). Under release-please,
changelog-sectionsshowsfeat,fix,perfandrevertand hides the rest,buildincluded. Under release-plz,[changelog] commit_parsersshows the same four and skips the rest, withprotect_breaking_commitson. -
Every repository takes the one changelog block its kickstart carries. A hidden type keeps its section name, because a break on a hidden type prints that heading.
-
A release needs a user-facing change or a break, under both tools. release-please applies that itself: it cuts no release whose changelog is empty. release-plz applies it through
release_commits. -
Every version heading after the first links GitHub's compare view from the previous tag. The view lists every change in the release, hidden types included.
git log <previous tag>..<tag>lists the same. The first release has no previous tag, so its heading carries no link, andgit log <tag>lists it. -
In a Rust repository
git_release_generate_notesappends GitHub's generated notes to the draft release, below the changelog. -
Under release-please, a squash whose title hid a user-facing change is corrected with
BEGIN_COMMIT_OVERRIDEin the merged pull request's description, before the release pull request merges. That override is the sanctioned recovery, never a changelog hand edit. -
The releaser app holds Contents and Pull requests write and no Issues. Nobody removes
autorelease: pendingby hand. -
A package published to a registry is published once by hand, then through trusted publishing with no long-lived token. An installer is attached to the release, attested, then the draft flips.
-
An artifact repository ships a build attestation and
SHA256SUMSbeside its artifacts, anddocs/install.mdnames both routes. The attestation is recorded through the attestations API, not attached as a release asset. One attestation covers the artifacts andSHA256SUMS. -
docs/install.mdshows two verification forms. The first proves the source repository and the signer:gh attestation verify <file> --repo zachthedev/<repo> \ --signer-workflow zachthedev/.github/.github/workflows/publish.yml
--repoalone fails, because the reusablepublish.ymlsigns the attestation. The second form binds the tag: resolve the tag's commit withgh api repos/zachthedev/<repo>/commits/tags/<tag>, then add--source-digest <sha>. Thetags/form means a branch of the same name cannot answer. It binds becausepublish.ymlrefuses a tag that does not nameGITHUB_SHA. -
--source-ref refs/tags/...is never used.cd.ymlruns on a push to the default branch, so the certificate recordsrefs/heads/main, and every genuine asset fails the tag form. -
A Rust workspace:
release-plz.tomlcarriesgit_release_draft = trueandgit_release_latest = false.- A workspace publishing nothing adds
git_only = trueand marksxtaskwithrelease = false. - A crate whose
Cargo.tomlsayspublish = falsealso carriespublish = falsein itsrelease-plz.tomlentry, or the workspace sets it. release-plz'sreleaserefuses such a crate while its entry leavespublishat the default, andrelease = falsedoes not cover it.updateandrelease-prnever check it, so the first real release run is where it fails. Agit_onlyworkspace is exempt: release-plz publishes nothing undergit_onlyand skips that check for every package. release-updatecomputes the release. It runs in no environment, with a job token that reads andMISE_ENV=semver, and runsrelease-plz updatewith the semver check. The check builds rustdoc for each changed library and its published baseline, which runs every dependency's build script, so the job holds no credential. It uploads the change it computed.release-prruns inrelease-pr. It applies only theCargo.lock,*Cargo.tomland*CHANGELOG.mdhunks, mints the releaser token last, and runsrelease-plz release-pr --allow-dirty.- That handoff refuses any summary line but a 100644 create of a
CHANGELOG.md, any binary hunk, and any symlink after the apply, becausegit apply --includefilters by path alone. - cargo-semver-checks lives in
mise.semver.tomlalone, withmise.semver.lock, because a mise shim installs any configured tool when another tool's shim runs.MISE_ENV=semverlayers that file overmise.toml, whose[tool_config] lockedbinds it too. - The release job runs under
releasewithid-token: writeand no registry token. release-plz exchanges the OIDC token itself. - The release job carries
if: startsWith(github.event.head_commit.message, 'chore: release'), so it queues an approval only on the release merge.release-plz.tomlpinspr_name, so the title and theif:cannot drift. - release-plz creates the tags in the release job, under the releaser app.
releasetherefore also holdsRELEASER_CLIENT_IDandRELEASER_PRIVATE_KEY, andrelease-prholds the same pair. - The crates.io trusted-publishing configuration names
cd.ymland the environmentrelease. - After a manual first publish, the owner creates the
<crate>-v<version>tags at the commit each crate's.cargo_vcs_info.jsonnames. release-plz never tags a version already on crates.io. A squash merge and the branch's deletion leave that commit unreachable, so without the tags release-plz walks the whole history and proposes a spurious release. - The tag ruleset admits the releaser app alone, so those tags are an owner step. The owner sets the ruleset to
disabled, creates each tag withPOST /repos/{owner}/{repo}/git/refs, sets it back toactiveand reads it back. A git push never creates them, because it runs thepre-pushgate while the ruleset is disabled and widens that window to minutes.
Every version follows Semantic Versioning. This section states the set's own choices and restates none of the specification's rules.
- The release tool owns the number. Nobody hand-edits a version or a changelog, apart from the one reset a kickstart's marker orders (Kickstarts).
- The first version is
0.1.0, or1.0.0where the interface is already settled. The release tool's configuration is the one record of that start:initial-versionunder release-please, the crate's version under release-plz. No prose restates it or gives its reason. - Below
1.0.0a breaking change bumps the minor: release-please throughbump-minor-pre-major, release-plz by its own default. The changelog carries the break. Under release-plz afeatbelow1.0.0bumps the patch. - A Rust workspace releases in lockstep. Its released crates share one release-plz
version_group, andrelease_commitsmakes a release need a user-facing change (Releases). Every crate takes the shared[workspace.package]version.release_commitswithout aversion_groupholds back a crate that saw no user-facing change without rewriting its dependents' requirements, so a breaking release then failscargo update. - A prerelease is
-rc.N. Everything that reads the tag admits it before the first one is cut. - Tags are
v-prefixed:v<version>. A workspace crate tagged on its own takes<crate>-v<version>. - An installer or an assembly carries the numeric core alone, so a prerelease is not an upgrade path.
docs/install.mdsays so under Upgrade.
- The kickstart ships one label set with colors and descriptions. Labels are created at repository creation with
gh label clonefrom the kickstart, so no repository defines them by hand. - The base set is GitHub's defaults,
accessibilityamong them, withoutgood first issueandquestion, plusdependencies,ci,security,triage,epic,autorelease: pendingandautorelease: tagged. GitHub creates its defaults at repository creation, so a new repository deletes those two after the clone. - A repository whose label set differs records why at the drift site, the file that names the label.
- Every label a tool applies exists before the tool runs. An undefined label is created on demand with no color and no description. That is how a set drifts.
- Label names are written only where a tool reads them: the issue forms'
labels:lines, the board's view filters (Board), the Renovate presets, anddependabot.ymlunder Dependabot. The release tool ownsautorelease: pendingandautorelease: tagged. - A release-plz repository sets
pr_labels = ["autorelease: pending"]. After the release, a step with a pull-requests-write token of its own moves the merged pull request toautorelease: tagged, withcontinue-on-error, so a failed label move never fails a release.
A reviewer holds this row, except where a bullet names a check.
- A file with a canonical template or generator output starts from that output, and the repository's content goes on top.
- Library over hand-rolled code, and the prior question first: does the parse need to exist at all? Where the owning tool prints or refuses the thing, the parse goes. Where a parse survives, a format another tool owns is read with the stack's library for that format, never by line or regex.
- No count in prose of something that grows or shrinks. Name the thing and where its list lives.
- A version appears only in the file that pins it. Prose names the pin file.
- Prose and code comments never restate a pinned version.
- A user-facing minimum of software the repository does not pin stays.
- A restatement stays where a test binds it to its pin, as the next bullet allows. The test fails whenever the pin moves without the text.
- A demo or fixture value that equals a real pin moves to another value, so a search for a pinned version finds the pin file alone.
- A
# vX.Y.Zcomment that a bot rewrites with its pin is outside the rule.
- A duplication is removed, not bound. Where a command prints the list, the document names the command and holds no copy. Where no command prints it and a reader needs the restated form, a test binds the document to its source. The repository says so.
- Every reason, mechanism, list, table and procedure has one home in a human document. Any other file reaches it by a relative link that carries at most the bare name of the thing: a command, a path, a label, a one-line imperative.
- A committed generated file is checked by regenerating it in the tree and
git diff --exit-code. A stale index fails on purpose. - Two kinds of generated file are exempt. A file whose generator reads machine state, such as an installed
tool's output, names its exemption at its drift site. A tool's own record,
mise.lock,CHANGELOG.mdor the release manifest, is held by the tool that writes it. - A prose rule that survives takes Vale as its mechanism, run as one gate step.
- A comment states what the code guarantees now. What changed goes in the commit message.
.gitignorestarts from thegithub/gitignoretemplate for the stack, below one marker naming the template path and the commit it came from. Repository entries sit above the marker, and.claude/worktrees/and.claude/settings.local.jsonare among them, because Claude Code writes both locally. A change to the template block, a negation included, is edited into the block in place, and no overrides block trails it. The terse note at the top of the template section says what changed, so a refresh knows what to carry.
Tool and platform defects that stop something being used as designed. Each entry names the section it bears on, the defect, and the condition that removes it.
- zizmor (Dependabot): the
dependabot-cooldownaudit returns at the first update whose cooldown meets the threshold, so every later entry is unexamined. No workaround. Removed once the early return becomes acontinueupstream. - wrangler (Gate):
wrangler types --checkcompares a hash of the config inputs against the file's header and passes a hand-edited body. The gate regenerates the file and diffs it. Removed once the check reads the body. - Bun
trustedDependencies(Hooks):bun.lockdoes not keep an empty list, so an empty list blocks install scripts on the install that writes the lockfile alone. The next install from that lockfile runs Bun's built-in allow list again. A fix proposed upstream, oven-sh/bun#31197, closed unmerged. Removed once an empty list survives the lockfile. - Windows
NoDefaultCurrentDirectoryInExePath(Gate): a shell that sets it hides the current-directory search of CreateProcess and Bun. A probe run from such a shell reports no exposure where a runner or a maintainer's terminal has one, so a probe sets its child's environment explicitly. Windows documents the variable, so the entry stays. - gofmt (Gate):
gofmt -lexits 0 with an unformatted file present. golangci-lint's formatter is the check. gofmt documents that exit code, so the entry stays. - codeql-action (CodeQL): falls back from
build-mode: nonetoautobuildfor C# and Java on a server-side flag, and logs it as a warning. The shared job setsCODEQL_ACTION_DISABLE_CSHARP_BUILDLESStofalse, which overrides the flag for C#. Java keeps the fallback, so a Java repository reads its first run's log, and the conclusion alone is not trusted. Removed once the fallback fails the run. - typescript-eslint (Gate): reads types through the JavaScript compiler API, which the native compiler lacks. A Bun
repository therefore keeps
typescripton the last major that carries that API, beside the native compiler installed under an alias, and a Renovate rule holds that major. Removed once typescript-eslint supports the native compiler. - GitHub dependency graph (Advisories): reads
.csprojalone and neverDirectory.Packages.props, so under central package management a NuGet bump produces an empty diff fordependency-review-action. The submitted snapshot under Advisories is what makes that leg real. Removed once the graph readsDirectory.Packages.props. - Renovate docker datasource (Updates): carries a release timestamp on Docker Hub alone, so a
ghcr.ioimage under a timestamp-required cooldown is held forever. Removed once the datasource timesghcr.io, upstream issue 39064, when the lookup moves there. - Renovate
node-versiondatasource (Workflows): dates a Node.js release by the day itsindex.jsonlists, at midnight UTC, which ran 14 to 46 hours ahead of publication in four releases measured. The three-day cooldown on a.node-versionbump therefore runs up to two days short. Removed once the datasource carries the publication time. - mise
cargo:backend (Tools): writes no checksum, no platform table and no URL to the lockfile, andmise lockreports success over it. Removed once the backend writes them. - mise lockfile (Tools): mise accepts a lockfile entry with its checksum removed, its backend rewritten, or its
url host swapped. A deleted provenance line disarms the downgrade refusal. mise falls back to
url_apion any failed HEAD ofurl, and no setting turns the fallback off. It reads a nestedplatformstable for any platform, and it readsurl_replacementsfrom every config file. The gate's assertions and the pinnedMISE_URL_REPLACEMENTSunder Tools exist for these. Removed once mise refuses each. - mise config discovery (Tools): mise merges the sibling lockfile of every config file it discovers, highest
precedence first. A committed
mise.local.tomlwithmise.local.lock, or a.miserc.tomlchoosing an env withmise.<env>.tomland its lock, then redirectsmise install --lockedto any url with any checksum. A gate readingmise.tomlandmise.lockalone stays green and runs the binary. mise reads.tool-versionseven underMISE_OVERRIDE_CONFIG_FILENAMES. With auto env on, set by a miserc orMISE_AUTO_ENV, it reads per-platformmise.<platform>.tomlfiles under that override too. It follows a symlink or junction to a config file. The refusals and the four pins under Tools exist for this. Removed once a locked install reads one named config and its lockfile alone. - mise config code (Tools):
mise installruns a config's[hooks]and theexec(...)templates in its[env]and[vars], even from a home with no trust state, whilemise whichrefuses an untrusted config.MISE_NO_ENVandMISE_NO_HOOKSleave[vars]running, so themise.tomlallow-list is the control, not an environment pin. Removed oncemise installrefuses an untrusted config asmise whichdoes. - mise global config (Tools, Gate): Bun loads a committed
.envinto any process it starts without--no-env-file. That file can nameMISE_GLOBAL_CONFIG_FILE, which mise honors whatever the config-name pins say.jdx/mise-actiontrusts the whole workspace, so a hook in any repository file then runs. The environment allow-list,--no-env-fileand the.envrefusal exist for this. Removed once mise holdsMISE_GLOBAL_CONFIG_FILEto the config-name pins. - Immutable releases (Tags): an immutable release locks the tag with its assets. The cleanup in
gh release delete --cleanup-tagis a ref deletion, so it is refused. A bad release leaves the tag on the wrong commit with the version spent. Removed once a fork of release-please tracks burned version tags and handles hitting one. - release-please (Releases): cannot write a version a Cargo workspace inherits through
version.workspace = true. Its cargo-workspace plugin refuses the manifest. Upstream googleapis/release-please#2111. Removed once the fix merges and a Rust repository chooses to move. - release-plz (Releases): in
git_onlymode it fails from the second release on when a workspace member depends by path on a crate inside a submodule. It rebuilds the released workspace in a worktree that holds no submodule contents. Upstream release-plz/release-plz#2983, whose merged fix covers the verify build and not manifest resolution. A consumer depends on the crate by registry version, not the submodule. Removed once manifest resolution reads the submodule. - GitHub
scheduletrigger (Workflows): skips ticks and delays others by hours. A cron interval is a lower bound on the gap, never a latency. No workaround. GitHub documents the delay, so the entry stays. - GitHub
scheduledisable (Workflows): GitHub disablesscheduletriggers in a public repository after 60 days without a commit, and the notice goes to the last committer as one email.gh workflow enablere-enables a workflow. GitHub documents the disable, so the entry stays. - Scheduled workflow notifications (Workflows): a failure notification goes to the last actor who edited the cron line, and no API reports who that is. A bot's bump can move it silently. Removed once an API reports the actor.
- actionlint (Workflows): on Windows it stalls when it hands ShellCheck a
run:script past about 4 KB. Every run script therefore stays under 4 KB, and a longer check becomes a step of its own. Removed once actionlint hands a long script over on Windows. - actionlint (Releases): refuses the
queuekey underconcurrency, which GitHub accepts.queue: maxkeeps up to 100 pending runs in a group, so no release merge's run is dropped. Upstream rhysd/actionlint#654. Removed once actionlint accepts the key, when the sharedrelease-prgroup and every caller's release group takequeue: max. - actionlint (Workflows): refuses GitHub's recommended
$/syntax for a same-repository reusable workflow call. A same-repository caller writes./, and.github/zizmor.ymldisables theself-repositoryaudit with that reason. Upstream rhysd/actionlint#711. Removed once actionlint accepts$/. - cargo (Updates): a toolchain older than the one that ships
[registry] global-min-publish-agewarns on every command while the key is present. The key is added once the pinned toolchain ships it. The per-registry form isregistries.<name>.min-publish-age. Aregistry.min-publish-agekey does not exist. Removed once every Rust repository pins a toolchain that ships the cooldown. - GitHub commit identity (Branch rules): a commit's author and committer are strings the pushing client supplies,
so anyone with write access can forge either. Push attribution records the authenticated pusher of each commit
and adds a
Committer must match pusherrule. GitHub made it a limited public preview for GitHub Enterprise customers on 2026-10-12 (changelog). Until the rule reaches these repositories, the settings that limit a push are worth a review. They are write access (collaborators and deploy keys), the bypass actors andrequire_last_push_approval, and arequired_signaturesrule. Removed once the rule is generally available on the account's plan.
- This handbook, the reusable workflows, the Renovate presets and the community files under Files:
zachthedev/.github. - The profile README:
zachthedev/zachthedev, the account's special repository, which the owner alone edits. GitHub reads.github/profile/README.mdonly for an organization, so.githubcarries none. - The files a repository copies: its kickstart.
- The per-repository alignment table:
REPOS.md, local and gitignored, because it lists repositories that are private or not yet on GitHub.