Skip to content

Fleet consolidation — fewer repos, one place per concern

The 2026-10-19 repository consolidation: which repositories merged into which, the zer0-CMS recipe, the hub's add and retire steps, and the decisions still open.

Decision record for the 2026-10-19 consolidation: which repositories merge into which, how the merge is done, what the hub does on each side, and the decisions still open. Status lines here are updated as the pull requests land.

Why

Forty-plus submodules had grown several pairs and clusters that share one purpose — a tool and its experiment, a site and its sidecar, three takes on git tooling. Each extra repository costs a CI run, a credential, a harness, a kit fan-out and a registry row, and the dash reports on all of it. Merging the clusters makes the fleet smaller without losing anything: every merge imports the source's full history under a subdirectory, so git log and git blame keep working at the new path.

The recipe

The same one zer0-CMS documents: clone the source, drop its tags, rewrite it with git filter-repo --to-subdirectory-filter <path> (bare #123 references become owner/repo#123 so they still point at the source's issues), then git merge --allow-unrelated-histories into the target on a branch, and open a pull request. Nested .github/workflows/ never run from a subdirectory: the thin callers a target already runs at the root (standard CI, the @claude handler, the prose gate) are dropped from the import; bespoke workflows stay as the reference for porting. Nothing is archived or deleted by the merge itself.

The map

Source Target Path PR Status
bamr87/lawmode bamr87/law-ai lawmode/ law-ai#174 merged (squash — history not on main, see below)
bamr87/gitnexus bamr87/gitorio packages/gitnexus/ gitorio#136 merged (squash — history not on main, see below)
bamr87/git-with-the-program bamr87/gitorio packages/git-with-the-program/ gitorio#136 merged (squash — history not on main, see below)
bamr87/retro-pi bamr87/rewind-arcade retro-pi/ rewind-arcade#36 merged (squash — history not on main, see below)
bamr87/1987 bamr87/zer0-CMS sites/1987/ zer0-CMS#36 merged (squash — restored by zer0-CMS#39)
year-of-ai/2005 bamr87/zer0-CMS sites/2005/ zer0-CMS#36 merged (squash — restored by zer0-CMS#39)
bamr87/cv bamr87/cv-pro (new) cv/ cv-pro pushed to main
bamr87/cv-builder-pro bamr87/cv-pro (new) app/ cv-pro pushed to main
bamr87/wtd bamr87/gitorio packages/wtd/ gitorio#141 open — merge with a merge commit, not a squash
bamr87/chui bamr87/bashos chui/ bashos#31 merged 2026-10-17 (squash — the two original commits are summarised in its message; the four later chui commits were fleet boilerplate bashOS already carries)
bamr87/irony-works bamr87/zer0-CMS sites/irony-works/ zer0-CMS#45 merged with a merge commit (history on main); original archived 2026-10-20
bamr87/wargames bamr87/zer0-CMS sites/wargames/ zer0-CMS#45 merged with a merge commit (history on main); original archived 2026-10-20
bamr87/zer0-mistakes, zer0-image-generator, books, drsai, zer0-pages, zer0-pages-remote, zer0-demo-garden, zer0-demo-cookbook, barodybroject bamr87/zer0-CMS packages/, sites/, apps/ zer0-CMS#29 (squash — restored by #39) imported; cutover per zer0-CMS ADR 0002 (#38)

The hub's side

Add (this record's PR): godotgo, bash-365-apex, year-of-ai.github.io, ai-world-view.github.io and bash-365.com become submodules — live repositories under the owner's accounts that the registry never listed — and so does the new cv-pro. amrchy (a 248 MB personal fork of Omarchy) and the two zer0 demo sites (already in zer0-CMS sites/) are registered without a submodule: shown on the dash, not checked out.

Retire (done 2026-10-19, hub PR #387): the lawmode, gitnexus, git-with-the-program, retro-pi, cv, cv-builder-pro and books submodules left .gitmodules and the registry, and so did the eight zer0 ones — zer0-mistakes, zer0-image-generator, drsai, zer0-pages, zer0-pages-remote, barodybroject, 1987 and 2005 — with their references in the hub's docs, port map, compose overrides, container groups and editor configs moved to projects/zer0-cms/ (and projects/cv-pro/). zer0-mistakes stays in the registry as a row without a submodule: the read-only mirror remote_theme loads. Three checkouts held work that existed nowhere else — an uncommitted feat/illustrate-loop in zer0-image-generator (committed locally), zer0-pages feat/knowledge-bases and zer0-mistakes fix/news-section-category-key — and are kept as verified git bundles in ~/bamr87-archive/<repo>-2026-10-19.bundle.

Retire (2026-10-20): the wtd and chui submodules left .gitmodules and the registry (33→31). The hub's terminal bootstrap (tools/setup-terminal.sh, setup.sh's status line, devtools.conf) now clones bamr87/bashos to ~/github/bashos and installs from its chui/ — a machine still linked into ~/github/chui moves with bashos chui install --skip-brew (bashOS chui/README.md). The fleet/v1 spec pointers (SCHEMA.md, fleet.manifest.yml, HARNESS-OPS.md, harness_registry.py) and the wtd launch config now name gitorio/packages/wtd. Neither checkout held unpushed work. Both originals were archived on 2026-10-20 (see the ai-seed/csv-vscoode entry below for the wtd verification).

Retire (2026-10-20, irony-works and wargames): both submodules left .gitmodules and the registry (31→29), with their port allocations, compose overrides, launch configs, workspace folder and portfolio rows. The content atlas keeps both sites but names each archived original explicitly (repo: in _data/fleet.yml content.sites), as it does for 2005, until it can read a monorepo sub-path. Their Pages sites keep serving the last build until zer0-CMS's one Pages deploy routes them (ADR 0002 C4; /wargames/ is routed already). aieo, imported alongside them in zer0-CMS#44, stays on its original for now: its release, its reusable content-scoring workflow and Dependabot still run there.

Retire the archived checkouts (2026-10-20, ai-seed and csv-vscoode): both leave .gitmodules (29→27) but stay in the registry as rows without a submodule, status: archived, exactly like zer0-mistakes and amrchy — shown on the dash, not carried in every clone. Their port allocations (ai-seed, ai-seed-docs), compose overrides, container group, launch/task configs and stack-evidence rows go with them; the generated projects/SCHEMA.md, README span and _data/cv_portfolio.json follow. The same change normalises .gitmodules: every section is named by its path (projects/<name>; README, scripts and skills were bare names from before projects/ existed) and the file is sorted by path. An existing clone keeps working — its projects/<name>/.git files still point at the old gitdirs — and git submodule sync refreshes .git/config once. Both were archived on GitHub the same day (ai-seed's one open issue, an auto-filed CI failure, closed with a pointer first), together with bamr87/chui and bamr87/wtd: chui's content has lived in bashOS chui/ since 2026-10-17, and gitorio#141's packages/wtd/ was verified identical to wtd main (its last two commits, wtd#31/#32, included) apart from the two deliberately dropped workflows — merge #141 with a merge commit, never a squash.

Retire the deleted originals (2026-10-20, aieo and raising-eliza): both upstream repositories were deleted by their owner during the alignment run — bamr87/aieo after zer0-CMS#44 imported it with full history as apps/aieo (merged 2026-10-20 22:16Z), bamr87/raising-eliza with no new home the hub can find. Both leave .gitmodules and the registry (27→25) with aieo's port allocations (aieo, aieo-frontend), compose override, container-group entry, database role, launch config, workspace folder and stack-evidence rows. The hub's checkouts were clean and in sync with the vanished remotes, so each is kept as a verified bundle — ~/bamr87-archive/aieo-2026-10-20.bundle (98 commits) and ~/bamr87-archive/raising-eliza-2026-10-20.bundle (12 commits) — the latter being the only copy of raising-eliza now known.

The squash merges dropped the imported history

Every merge PR above was squash-merged (and so were zer0-CMS #29 and #36), so each target's main carries the imported tree as one commit: git log/git blame under lawmode/, packages/gitnexus/, retro-pi/ or any zer0-CMS import path stop at the squash. The rewritten histories are intact in each PR's refs/pull/<n>/head and in the originals — and bamr87/1987 has since been deleted, so its PR ref is the last copy. The repair is zer0-CMS's tools/history/graft.sh: a branch that lifts the paths out, merges the rewritten histories back and replays the later commits, ending on a tree identical to main, landed as a fast-forward (a merge commit keeps the history reachable but blame still stops at the squash). zer0-CMS#39 does it for zer0-CMS; law-ai, gitorio and rewind-arcade need the same before any of their originals is archived. Merge an import with a merge commit or a fast-forward — never a squash.

Decided since (zer0 stack)

zer0-CMS ADR 0002 settles open decision 1 for the zer0 family: zer0-CMS is the only home; every original is archived except bamr87/zer0-mistakes, which becomes a read-only mirror because remote_theme only loads from a repository root; releases are cut in zer0-CMS with component-prefixed tags; every site publishes from one Pages deploy on zer0-mistakes.com under its own sub-path (sites/2005 is built by year-of-ai.github.io); and content goes DB-first in Wagtail one site at a time. Its cutover milestones C0–C7 end with the hub retiring the eight remaining zer0 submodules. bamr87/1987 was deleted on GitHub; sites/1987/ in zer0-CMS is its only home.

The theme returns (2026-10-21): zer0-CMS ADR 0005 reverses ADR 0002 for the theme alone. bamr87/zer0-mistakes never stopped being the real home (v1.31.3, the gem, zer0-mistakes.com and the consumer propagation all run from it, ten commits since the import, the mirror workflow never armed), so the monorepo's unique theme changes went back upstream as zer0-mistakes#559, packages/zer0-mistakes/ leaves zer0-CMS in #52, and zer0 studio — a Rails workbench that designs, customizes and updates the theme from a browser, every write a digest-guarded atomic rename, every script the theme's own — lands beside it at studio/ in zer0-mistakes#560. zer0-CMS stays the content-management half and builds each site with the theme that site declares (gem or remote_theme, pinned per site). This hub change re-adds the theme as the submodule projects/zer0-mistakes and lets update-submodules.yml track it again; the registry row loses its mirror note and scout: false.

Open decisions

  1. The rest of the zer0 family. zer0-CMS's MONOREPO.md is explicit that zer0-mistakes (the remote_theme source every Pages consumer names, plus the gem release), zer0-image-generator (gem release), zer0-pages, drsai, barodybroject and the demo sites still do something only their own repository can do today. Their hub submodules stay until, per repository, either the monorepo becomes the place work happens and the original is a read-only mirror fed by git subtree split, or the original stays authoritative. One direction per repository, never both.
  2. The lineage organizations. year-of-ai carries thirteen year repos and ai-world-view four country repos, all generated knowledge bases. Only the two org root sites were added; the per-year and per-country repos are tracked through the content atlas. Registering all seventeen as submodules would undo the point of this exercise — say so if you want them anyway.
  3. cv-pro's deploy. bamr87/cv is archived (2026-10-19), so the live CV site stays at its last build until cv-pro publishes it; cv-pro carries those workflows under cv/.github/workflows/ as reference. Port the publish and release workflows to the root, repoint the sync-cv skill at cv-pro/cv/data/cv.json, then archive both originals.
  4. Archiving — done 2026-10-19. Archived (read-only, still readable, Pages sites frozen at their last build): bamr87/zer0-image-generator, books, drsai, zer0-pages, zer0-pages-remote, zer0-demo-cookbook, zer0-demo-garden, barodybroject, year-of-ai/2005, lawmode, gitnexus, git-with-the-program, retro-pi, cv and cv-builder-pro. Their open pull requests (zer0-image-generator #31, gitnexus #2–#7, cv-builder-pro #91–#95) were closed with a pointer to the new home first; the branches stay readable. bamr87/zer0-mistakes is deliberately not archived — it becomes the mirror (zer0-CMS ADR 0002). Consequences until the replacements are armed: the gem and PyPI releases, the Azure deploy and the CV site no longer update — zer0-CMS C2 (releases), C4 (Pages) and cv-pro's publish workflows take them over.