One system, one living version
A copy of a system is a fork, whatever you call it. We found one of ours quietly diverging from the original, with a capability compiled out of it and hidden in a config file. These are the rules we wrote so it cannot happen again.
How a copy becomes a fork
It starts innocently. You want to show a system in a portfolio, so you copy it in. You want the portfolio version to behave slightly differently, so you change a line. A hard-coded return true here, a deleted call path there.
Now there are two systems with one name. Fixes land in one and not the other. Nobody decided to fork the product. It forked anyway, and the fork is hidden in a config file where nobody will look for it.
This is not hypothetical. It happened to GSS.
Nobody decided to fork the product. It forked anyway.
The rule
Every system has exactly one living implementation. Our studio site may contain it, embed it, link to it or showcase it. It may never hold a second, manually synchronised copy.
When we find one, it is demoted in the same change that finds it. GSS now lives in exactly one place, the old repository is frozen, and three automated checks fail the build if it starts to fork again.
One living implementation. Everything else is a route onto it.
Configuration branches. Source is never reduced.
A host may choose a mode the product supports: a demo mode, an embedded mode, a mode that runs without an API key. That is configuration, and it is fine.
What a host may not do is compile a capability out of the product. The moment you delete a path to make one surface behave, you have two products.
Configuration branches. Source is never reduced.
Names are architecture
A product does not live in a folder called demos. GSS lives where products live, and the demo is a route onto it, not a copy of it. The path name tells the next person, or the next agent, what the thing is.
And a system only earns its own repository by needing one: independent deployment, its own release cadence, its own licence, or a second consumer. Not by feeling important. The smallest architecture that keeps one source of truth wins.
A system earns its own repository by needing one, not by feeling important.