The public name is AntiFl0ck (chosen to avoid a documented collision with an existing project). The README, logo, and public prose already use it. This checklist migrates the remaining in-tree identifiers and re-proves the build. Run it on a workstation that has the full toolchain — Go, Buf, Node 24+, and Docker — because the wire package and generated code must be regenerated and the ten-gate release must pass. It cannot be verified without them.
- Changes: Go string identifiers,
ANTIFLOCK_*env vars, binary and directory names (antiflock-core→antifl0ck-core,api/proto/antiflock→api/proto/antifl0ck), the protobuf packageantiflock.v1→antifl0ck.v1, npm package names, config profiles, compose, scripts, and docs prose. - Preserved: the Go module path and repository URL
github.com/DBarr3/AntiFlock(the GitHub repo keeps its name), so import paths never break. - Regenerated, not string-edited:
api/gen/**(*.pb.go),package-lock.json, andgo.sum.
- Branch.
git switch -c rebrand/antifl0ck - Dry run and review.
node scripts/rebrand-antifl0ck.mjs— inspect the list of files and directory renames. Nothing is written. - Apply.
node scripts/rebrand-antifl0ck.mjs --apply— rewrites text and renamesantiflock-named directories. - Regenerate protobuf.
npx buf generate(from the repo root orapi/protoperbuf.gen.yaml). Then remove any stale generated package:rm -rf api/gen/go/antiflock. - Compile and test Go.
go mod tidy && go build ./... && go test ./... && go vet ./... - Reinstall and re-lock JS.
npm install(regeneratespackage-lock.jsonwith the new package names). - Run the locked release gate.
npm run verify— must reach10 / 10strict acceptance gates. - Spot-check the running stack.
npm run dev, confirm the dashboard loads and the env file is now.antifl0ck/dev.envwithANTIFL0CK_*variables, thennpm run lab. - Grep for leftovers.
git grep -in antiflock— the only expected matches are insidegithub.com/DBarr3/AntiFlockpaths, this file, and historical CHANGELOG entries. - Commit. Focused commit:
refactor: rebrand internal identifiers antiflock → antifl0ck.
The change is isolated to a branch and fully reversible: git checkout -- . before
committing, or git switch main and delete the branch. --apply never touches
.git.
- Publishing npm packages requires flipping
"private": true— still gated by the acceptance contracts gate and the release process. - Bumping the protobuf package to a public
v1namespace is a wire decision; keep itantifl0ck.v1unless a compatibility break is intended (see open-questions.md).