Foundation
Codebase
One authoritative codebase; every deploy is a version of it.
Keep application source and the declarations needed to reproduce it in one revision-controlled lineage. Environments are deploys of that lineage, not copied repositories that quietly diverge.
Operational contract
- Trace every running instance to a commit and immutable release identifier.
- Keep migrations, configuration schemas, and deployment declarations beside the code they govern.
- Treat forks as contributions and experiments, not separate production codebases.