interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

branch main Branches Tags History

aien-architecture-mv / docs / research / repo-topology-unix-vs-monorepo-vs-hybrid.md

77 lines · 16025 bytes Raw Blame History Source

Repository topology: many small repos, one monorepo, or a hybrid

Date: 2026-10-16. Question from Drake: is a Unix-style GitHub setup (many small repositories, one per tool) more efficient long term, or a monorepo, or a hybrid (one core repo with adapters and modules in separate repos)?

Labels: claims marked UNVERIFIED could not be confirmed from a primary source. "Inference" means my reasoning from the cited facts. Local facts come from the read-only clones under ~/workspace/pipeline/clones/.

1. What "Unix-style" actually means

Settled point: Unix-style means small composable programs with clean interfaces. It does not require one repository per program. The two best-known Unix descendants keep everything in one tree on purpose, and the kernel doc argues that a stable boundary is exactly what you do not want between pieces you control.

2. Monorepo: stated benefits and costs

Pattern across all four: the big projects keep the tightly coupled body in one tree and put loosely coupled or independently released things outside, tied by pins.

3. Mechanisms and their documented limits

4. What my own judge already does (local facts)

5. The three options for me

A. Many repositories, as today.

B. One monorepo.

C. Hybrid: core monorepo plus attachments.

6. Recommendation

Option C, staged, and decided before the -mv suffixes are dropped: the retirement rule makes names the one irreversible thing, so fix the final names first (inference from the transfer doc; whether rename also retires is UNVERIFIED).

Smallest reversible first step: build the core monorepo locally only, in a scratch directory, with filter-repo on throwaway copies of the six core clones. Run aien-test plan against it and record what breaks (gate roots, sibling paths, run.sh collisions). Nothing is pushed, no GitHub name is used, and deleting the directory undoes it. The result is a measured migration cost to put in front of Drake.

Until then, the cheap fix for option A pain is to make every sibling a pinned commit instead of main, so the cache key moves when a sibling moves (ADR 0033 Decision 12 already invalidates on a moved pin).

Sources

All links are inline above. Secondary or partial: the Google CACM paper (only the abstract page was retrievable; paper figures not used). The Pike and Kernighan PDF is a third-party hosted copy of the original.