On juudd, a deploy command typed with no arguments goes to development. Production takes an explicit flag. That direction is the whole decision, and it exists because the command people type from muscle memory, or copy from a stale README, should land where being wrong is cheap.
The rest of this post is why the two environments exist, what they are not, and the one mistake that nothing would report.
Two environments, side by side, not a rehearsal
When the platform moved to its public domain it did not migrate. It forked. The old names kept running as development, the new names became production, and the two were already separate objects: different serving domains, different namespaces, different front-door programs, different storage, different sign-in environments. Neither could take the other's traffic, so neither had to be removed for the other to work.
The old names were going to be deleted at the end of the rename. They were put to work instead.
Development is a place to make mistakes with configuration and code. It is where a site can be deployed and thrown away against the real services, without a customer's site being the thing that proves a change works. A platform that has only ever published to production has no way to find that class of problem at all.
It is not a staging copy of production, and the ADR refuses to pretend it is. Nothing promises the two are configured alike. A development environment believed to be identical is one whose differences are discovered during an incident.
Put the accident on the side with no customers
The deploy files carry development at the top level and production inside a named environment block. A bare deploy command reaches development. Production is one extra flag, and the script that deploys to production passes it.
The other layout is more natural to write: production at the top, development behind a flag. It also puts the accident on the side that has customers. The cheapest mistake should not be the expensive one.
Two mechanics inside that file are easy to get wrong and are commented where they live:
- The production block must set its own name. Left to inherit, the tooling
appends the environment to the top-level name and creates a third program nobody asked for, which deploys successfully and serves nothing.
- Each environment's front door must be bound to that environment's own
outbound program. Crossing them would sit in front of every site at once, and it is quiet now in a way it was not before, because both names exist and neither resolves to nothing.
The branch is what makes production lag instead of differ
Development follows the main branch. Production follows a release branch that only moves by fast-forward from main, never by a commit made on it directly.
A commit that exists only on the release branch is a change running in production that no development environment has ever run. That is the failure a second environment was bought to prevent, and it would look completely normal, because the deploy follows whatever the branch says. Nothing enforces the fast-forward. A forced push would work. So the rule is written down rather than assumed.
The mistake nothing reports
Every wrong name in this setup announces itself. A wrong namespace refuses the publish. A wrong domain fails to resolve. A wrong binding breaks the front door.
The one that does not announce itself is the store. The store is the source of truth for what every site is. A control plane pointed at the wrong one starts, passes its health check, serves, and does exactly what it is told, into the wrong record. The two environments do not share a store, and the only guardrail on that is a line printed when the process starts.
The MCP server prints it from its entry point: the port, whether auth is on, how tokens are verified, the resource URL, the store, the publish target and the public URL. It is the one place two configurations are ever compared, and it is worth reading each time either service restarts. It already caught a real mistake. For about half an hour on the day the split was written, the existing service was pointed at production names on the assumption that it was production. Nothing was serving and nothing was published, and a deploy in that window would have written a development site into production.
Two smaller things the split taught
- An absent field means unconfigured at least as often as unsupported. A
discovery document in production lacked a registration endpoint that the development one had, and the first reading was that production could not do it. The setting was on in both. What gated the endpoint was one missing resource, and registering it made the field appear. It was tested as a hypothesis rather than reasoned about, and that is the only reason the wrong conclusion did not reach the design.
- Moving a sign-in server breaks connected clients. A client caches the one it discovered at first connect, so it keeps trusting it, and the
server advertised three different ones in an hour while the client kept trying the first. Nothing in a discovery document tells a client to re-read it. Do that once, before there are customers, and it costs one owner.
What is not split, and what that costs
The two environments share vendor accounts and are separated by name inside them. A suspension, a failed payment or a compromised token takes both at once, and development is no protection against any of them.
The ADR accepts that and says what the split is: a place to make mistakes, not a blast-radius boundary. The only real isolation is the older one, which keeps customer sites on a different domain from the control plane.
The rule, once
Make the command people type without thinking reach the environment where being wrong is cheap, make production cost an explicit flag, and print what each process resolved at boot, because the mistake that does not announce itself is the one that needs a line to catch it. The tools and their limits are listed in the docs.