Define a domain once. Deploy it into each environment.
A schema reaches production by promotion, in the order you choose. Its digest is the same in every environment, so a promotion proves what it deploys.
| Part | In each environment |
|---|---|
| Records and files | Its own. A call names one environment, and reaches no other. |
| Schema | Deployed into each environment on its own. A version never changes once it is live. |
| Releases and runs | Each environment publishes and rolls back on its own. |
| Access grants | A person or an app sees only the environments where it holds a grant. |
| Connections | Each environment calls its own instances of your code. |
| Secrets | One name, a value for each environment. The nearest wins: the domain’s, then the environment’s, then the org’s. |
What an environment keeps
People, apps, scopes and profiles belong to the whole org. The rest is each environment’s own.
| A promotion | Rule |
|---|---|
| Same digest | A schema has a digest of its content, the same in every environment. |
| Proven | A deployment can name the digest it expects and the version it replaces. It is rejected when either differs. |
| Your order | The platform fixes no order of environments. You promote as you choose. |
| Dependencies first | A schema is promoted after the domains it depends on. |
| A rehearsal | A deployment can rehearse: it prepares whole, makes nothing live, and tells what would fail. |
| Modules | A module is named by the digest of its file, the same in every environment. |
From one environment to the next
A reader sees one whole version of a schema, never a mix of two.