Skip to content
ExplanationUnreviewed

0001: Monorepo isolation and package decoupling

Recorded 2026-11-21. WavWonder develops research packages, commercial products, infrastructure, and documentation inside one monorepo while giving each package its own dependency manifest and environment and isolating products/ from research/.

Context

Sharing one root Python or Node environment across GPU training code, lightweight CLI helpers, web dashboards, and desktop products pulls CUDA and PyTorch wheels into lightweight tools and ties product build lifecycles directly to experimental training refactors. Splitting into separate Git repositories avoids environment bloat yet fragments cross-package contracts (Phoneme specification v2 and shared engineering docs) across separate histories.

Decision

  1. Organize tracked files under research/, products/, infra/, and docs/, keeping untracked corpora, weights, and caches in gitignored local/.
  2. Give every package under research/ and products/ its own pyproject.toml/uv.lock or package.json/bun.lock with package-local .venv/ or node_modules/, without a shared root environment.
  3. Keep products/ decoupled from research/ by referencing shared contracts only through docs/engineering/specs/, treating research/preview/ strictly as a transitional tool ahead of products/editor/.
  4. Exclude PyTorch from research/core and research/tracking so lightweight data readers and tracking clients stay small and fast.

Consequences and revisit conditions

  • Root commands invoke packages explicitly (such as uv run --project research/vocalsynth ...), linking sibling workspace packages via editable local path sources.
  • Revisit package isolation only if both research/ and products/ require consuming a shared compiled runtime library beyond pure-data tables and specs.

Type to search…

↑↓ navigate↵ selectEsc close