JSON data, generated and snapshot files and a mirrored site-template are never rewritten (a first pass broke loki's catalogue tests, bitbaum's site build and causius's translated copy). Status table brought to 2026-11-10. Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD Co-authored-by: Claude <noreply@anthropic.com>
8.9 KiB
Move the four unscoped packages under @bitbaum
Status: planned 2026-11-06 (owner: "let's do all that"). Nothing below is done until a link in the status table says so.
Why
Fourteen fleet packages are @bitbaum/* and live under the bitbaum npm
organization. Four were published earlier, before the scope was adopted, and
never moved, so they sit on the owner's personal npm profile:
| Package (today) | First published | Adopters (registers/packages.json) |
|---|---|---|
ai-forms |
2026-08-16 | 7 |
threadkit |
2026-08-16 | 6 |
bip-kit |
2026-08-21 | 17 |
limitkit |
2026-09-05 | 17 |
@bitbaum/design-tokens (2026-09-05) was the first scoped package. No document
records a decision to leave these four unscoped; it is drift. Costs: one
account owns them instead of the organization, trusted publishing is linked in
two kinds of place, and the registry, docs and audits carry a naming exception
(SHARED.md still describes an "unscoped ai-* name").
Target
@bitbaum/ai-forms, @bitbaum/threadkit, @bitbaum/bip-kit,
@bitbaum/limitkit. Same code, same version numbers, same repositories. The old
names stay installable (never unpublished) and are deprecated with a pointer
once no adopter uses them.
Prerequisite: a first publish for every new name
npm trusts a publisher only for a package that already exists, so each new name
needs one token-based first publish (NPM_BOOTSTRAP_TOKEN, see
templates/package/.github/workflows/publish.yml). The same org secret covers
all of them, and @bitbaum/writingkit (never published; its 2026-11-06 Publish
run logged BOOTSTRAP: false, so the secret was not visible to that repo).
After each first publish the workflow links trusted publishing itself.
Order
- Packages (one PR per repo, the package's own CI and release): rename
nameinpackage.json, README/CHANGELOG, imports in tests and demos; keep the version;exportsunchanged. Publish under the new name. Verify the packed tarball installs and imports under the new name. - Fleet (this repo):
registers/package-repos.jsonand the generatedregisters/packages.jsoncarry the new name and aformerName; the currency reconciler, shared-registry audit, package-composition audit, rollout gate and their tests accept the new name;SHARED.mddrops the "unscoped" note. Audits must treat the old name as a legacy alias until step 5. - Codemod (
scripts/packages/rename-package.mjs, dry run by default, one non-draft PR per repo on afleet/package-scopebranch, same shape assync-agent-rules.mjs): rewrite dependency names and import specifiers in source,package.json,pnpm-workspace.yaml(release-age exclusions),package-plan.jsonbindings and docs. Aliases (@fleet/ai-formsin Solon and BiasLens) becomenpm:@bitbaum/ai-forms@^x; the alias name may stay until those apps are next touched. Each PR passes the consumer's own verify. - Adopters merge through the sweep; the rollout gate and canary rules apply as for any package change (OrangeCat first).
- Deprecate the old names (
npm deprecate, message names the new package) only when the register shows no adopter on them. Nevernpm unpublish.
Adopters per registers/packages.json: bip-kit — aoz-begleitung, biaslens,
bitbaum, botsmann, causius, datacat, diplodoctor, evig, fleet, heidi, kivvi,
loki, orangecat, petvity, skif, solon, substrata; limitkit — accountkit,
aoz-begleitung, biaslens, botsmann, causius, diplodoctor, evig, fleet, heidi,
kivvi, loki, morulia, orangecat, petvity, skif, surf-your-life, truthseeker;
ai-forms — ai-kit, aoz-begleitung, biaslens, evig, kivvi, loki, surf-your-life;
threadkit — aoz-begleitung, heidi, orangecat, skif, substrata, vitareba.
Repos the fleet does not manage automatically (--include-private is local
report only) are listed for their owners rather than edited.
Acceptance
npm view @bitbaum/<name>serves the same version as the old name, with provenance, maintained by the organization.- A consumer built from the new name passes its full verify; no consumer references the old name (grep and lockfile) before deprecation.
- Registers, audits, docs and templates carry no unscoped exception.
- Old names remain installable and are deprecated, not removed.
Status
Updated 2026-11-10.
| Step | State |
|---|---|
| Org secret visible to package repos | done 2026-11-06; all five new names are published, so the token has no further use and is to be deleted on npm |
| 1. Package PRs | all merged and published: @bitbaum/limitkit 0.2.1, @bitbaum/threadkit 0.1.1, @bitbaum/bip-kit 0.6.1, @bitbaum/ai-forms 0.1.3 (and @bitbaum/writingkit 0.2.0). Three repos still had the older OIDC-only Publish workflow, which cannot make a first publish; each got the current template |
| 2. Fleet registers/audits | rollout entries for all four scoped names are on main (#512, #515), each bootstrapped by its canary's PR (kivvi#251 for bip-kit, limitkit, ai-forms; substrata#362 for threadkit). Not yet done: the generated registers/packages.json still lists these packages by their unscoped names, because it follows each package's latest release tag, and those tags predate the rename; the scoped names enter it with each package's next release |
| 3. Codemod | scripts/packages/rename-package.mjs, with a self-test in CI. It edits dependency keys and quoted import specifiers in code and style files and the package entries of package-plan.json; it leaves prose, JSON data, generated and snapshot files and a mirrored site-template alone (a first pass that did not broke loki's catalogue tests, bitbaum's site build and causius's translated copy) |
| 4. Adopters | OrangeCat #1574 merged (canary), as did kivvi and substrata. Open, one PR each: biaslens, bitbaum, causius, diplodoctor, evig, heidi, loki, morulia, solon. Not yet started: accountkit, ai-kit, fleet itself, and repos this session cannot reach (aoz-begleitung, botsmann, datacat, petvity, skif, surf-your-life, truthseeker, vitareba) |
| 5. Deprecation | not started: only when registers/packages.json shows no adopter on an old name, and only with npm deprecate, never unpublish |