Skip to content

ADR-0004: Multi-repo topology

  • Status: Accepted
  • Deciders: Platform engineering
  • Context: .specify/memory/repositories.md

Context

The platform spans a shared library, four backend service groups, a frontend workspace, an infra repo, and a specs repo. A single monorepo would simplify cross-cutting refactors but couples build and release cadence, bloats every checkout and CI run, and blurs ownership boundaries between very different stacks (Kotlin, TypeScript, HCL).

Decision

Use a multi-repo topology: one repo per bounded concern (see the table in ../architecture.md). Repos share contracts, not source trees:

  • The public API contract (committed OpenAPI) binds frontend ↔ backend (see ADR-0003).
  • resortwise-shared binds services via a pinned dependency (see ADR-0002).
  • resortwise-infra owns deployment for all of them and enforces deployment parity across targets (RW-700).

Consequences

  • Each repo builds, tests, and deploys independently; CI stays fast and scoped.
  • Cross-repo changes (e.g. a shared-primitive bump) are explicit, versioned steps — a repo resource is repinned rather than edited in place, which the CI refs make visible.
  • The specs repo is the seam of record for architecture, ADRs, and the Speckit workflow, keeping process artifacts out of the code repos.