Status: READY — decisions resolved; execution pending GitHub scope expansion.
Baseline: main @ 8c26b8f. Step-by-step agent command sheet: RESITE-CODEX-HANDOFF.adoc.
nextgen-databases is a coordination repo (see EXPLAINME.adoc, 0-AI-MANIFEST.a2ml),
but it physically contains full database implementations (~16,000 files). LLMs keep
adding per-database content here because the code lives here and there was no top-level
guardrail. This runbook extracts each database / query language to its own repo so the
coordination repo becomes thin, while the prevention layer (placement guard + pre-write
hook + agent instructions) keeps it that way.
Authoritative table: REGISTRY.adoc. Summary:
| Source | Destination repo | Exists? | Action |
|---|---|---|---|
|
hyperpolymath/nqc |
create |
extract as-is (already standalone) |
|
hyperpolymath/VerisimCore.jl |
create |
extract (Julia package) |
|
hyperpolymath/glyphbase |
create |
un-nest |
|
hyperpolymath/gnpl |
create |
un-nest (two paths) |
|
hyperpolymath/lithoglyph |
create |
extract slimmed parent |
|
hyperpolymath/vcl-ut |
yes |
reconcile → delete copy |
|
hyperpolymath/quandledb |
yes |
reconcile → delete copy |
|
hyperpolymath/verisimdb |
yes |
reconcile → delete copy; VCL stays nested |
|
hyperpolymath/verisimdb |
yes |
fold in as standard feature → delete |
(KRL) |
hyperpolymath/krl |
yes |
nothing here to move |
-
typeql-experimental→ standalonevcl-ut(already exists as a canonical repo). -
verisim-core→ own repoVerisimCore.jl(Julia-package pattern). -
verisim-modular-experiment→ folded intoverisimdbas a standard feature (no longer an experiment). -
gnpl→ un-nest GQL/GQL-DT now into its own repo. -
New repos: public (org convention). Existing repos (
verisimdb,quandledb,vcl-ut,krl) are populated/canonical → reconcile, never overwrite. -
Thinned repo references: hybrid — submodules for
verisimdb+lithoglyph, registry links for the rest.
-
One repo at a time, never big-bang. Start with the cleanest/smallest to prove the pattern:
quandledb(stub) ornqc(already standalone). -
Un-nest languages/UIs first where applicable (
glyphbase,gql-dt→gnpl) before slimming the parent database. -
Preserve history per path with
git filter-repo(preferred) orgit subtree split. -
Register each new repo in https://github.com/hyperpolymath/gv-clade-index.
-
Replace, then thin: only after the destination repo is verified, remove the directory here, confirm its
REGISTRY.adocentry, and add a submodule forverisimdb/lithoglyph. -
Shrink the guard: remove each extracted dir from the placement-guard grandfather list and from the pre-write hook map as it leaves (until the list is empty).
Exact, copy-paste commands live in RESITE-CODEX-HANDOFF.adoc (the agent command sheet).
Two patterns:
-
Create (new repos:
nqc,VerisimCore.jl,glyphbase,gnpl,lithoglyph) — history-preserving extract withgit filter-repoon a throwaway clone, create the repo, push tomain. Helper:scripts/resite/extract-subdir.sh. -
Reconcile (existing repos:
verisimdb,quandledb,vcl-ut) — extract the monorepo copy,diffit against the live canonical repo, and push animport/from-monorepobranch + PR only if there is unique work. Never force-pushmain. Delete the copy here only after the canonical is confirmed to hold the content.
Un-nest order for Lithoglyph: extract glyphbase and gnpl (from gql-dt/
core-factor/gql/) first, then the slimmed lithoglyph/.
-
GitHub scope: the executing session must have access to the destination repos (
verisimdb,quandledb,vcl-ut,lithoglyph,glyphbase,gnpl,nqc,VerisimCore.jl) plus create rights for the new ones. -
git-filter-repomust be installed in the execution environment.
-
Grant the executing agent access to the destination repos (see Blockers).
-
Run
RESITE-CODEX-HANDOFF.adocend to end: create new repos, reconcile existing ones, foldverisim-modular-experimentintoverisimdb. -
Land the "thin the coordination repo" PR (remove extracted dirs, add submodules, empty the placement-guard grandfather list) and set this runbook’s Status to DONE.