Environments and the deploy simulator
The Environments pages show what runs in each of your environments and what can move next, the history of every deployment and release, and — before you deploy — what a deployment would change. The Board puts every service against every environment with a verdict for each running version; History says who deployed, released, undeployed or ended support for what. The Deploy simulator answers what if this version went to production? and records nothing. Record a deployment, Record a release, Record an undeployment and End support record what happened, and New environment creates an environment.
Before you start
- You hold Pacts → View. Without it, the pages show Permission denied. Recording a deployment or a release and creating an environment need Pacts → Create; a role without it sees no Record a deployment, New environment or Record a release. Recording an undeployment and ending support need Pacts → Edit.
- Your deploy jobs record each deployment (or release). The pages show what is recorded; a deployment nobody recorded is not there.
- The simulator reads the same pacts and verification results as can-i-deploy, so a version needs its pacts published and verified for an answer other than Not known yet.
Open the Environments page
- In the rail, under Ship, click Contracts.
- Click the Environments tab.
The page is at /ade/dashboard/pacts/environments.
The page opens on the Board. One line over it counts the environments, the services, the versions running and the blocked promotions; Board and History switch the view, and Refresh reads what is recorded again.
Read the board


/ade/dashboard/pacts/environments- Columns — the environments, non-production first and production last (the order versions are promoted in), then Released to users. Click an environment's name to open its page; its ⋯ menu holds Edit environment, Record a deployment here, Record an undeployment and Delete environment — each shown only to a role that may do it.
- A cell — the version running there, with its instances (
eu-west · us-east) and a dot: green — verified with everything beside it, amber — unverified (a verification is still missing), red — failing (1 failing pact). A grey dot was not checked: the board asks at most 100 verdicts and says how many it left out; open the deploy simulator for those.—means nothing runs there. - Can go next — when the environment to the left runs a newer version, the cell says whether it can come here: 2.7.0 can go (click it to record that deployment), 2.7.0 blocked or unverified (click it to open the deploy simulator with that question). It is the simulator's answer, asked the same way.
- Released to users — each release a service supports, with its environment, its dot and End support.
- A service never deployed shows dashes and Record its first deployment.
A commit-SHA version is cut to 12 characters; point at it to read the whole number. Click a service to open its page. When the workspace has more than 2000 current deployments or releases, the page says so and shows the first 2000.
A workspace with no environment says “No environments yet. Add production and staging so can-i-deploy has somewhere to look.”, offers New environment, and shows the commands that create one and record a deployment.
Read the history
Click History.


/ade/dashboard/pacts/environmentsEach entry says what happened — deployed to, undeployed from, released to, support ended in — when, and who recorded it. A deployment or release carries Verified at the time or Not verified at the time: what can-i-deploy answered when it was recorded. A deployment that replaced another says Replaced 2.6.1; the replaced one has no entry of its own. Click Show older for the next 25.
Deployments and releases recorded before this was kept carry no verification badge.
Record a deployment
Record a deployment the pipeline did not — a hotfix, a manual rollout. You need Pacts → Create.
- Click Record a deployment (or, on an environment's column, ⋯ → Record a deployment here, or a can go on the board, which fills in the service and version).
- In Service, choose the pacticipant (
Billing Service). - In Version, type the version; the service's newest recorded versions are suggested
(
2.7.0+9f31c20). Only a version already recorded — by publishing a pact or a verification result — can be deployed. - In Environment, choose where it runs now (
Production). - Optional: in Instance, name the copy it replaced (
eu-west) when the service runs in several places.
Once the three are chosen, the dialog asks can-i-deploy:
- can-i-deploy says yes — click Record deployment.
- can-i-deploy says no (or does not know yet) — the reasons are listed, such as which
consumer needs a field this version does not return. Record deployment stays off until you
tick Record it anyway — this already happened: a record states a fact, so it is allowed, but
never by accident. The tick is written to the audit trail (
override_can_i_deploy: truein the audit row ofpacts.deployment.record), and the page asks can-i-deploy again when you record, so a “no” is never overridden without it.


/ade/dashboard/pacts/environmentsThe deployment replaces what ran in that instance; the dialog names it (Replaces 2.3.1).
The same, from anywhere shows apiome pact record-deployment for what you chose. That command
does not ask can-i-deploy, so in a pipeline run apiome pact can-i-deploy first (the
deploy simulator prints both).
Record a release
For an application where several versions are in use at once — a mobile app, a library — record a release instead. You need Pacts → Create.
- Click Record a release.
- Choose the Service, type the Version and choose the Environment.
- Read Still supported: the service's other releases there. A release does not replace another, so they stay supported until their support is ended. To end one's support now, untick it (you need Pacts → Edit).
- Click Record release.
The same, from anywhere shows apiome pact record-release, and apiome pact record-support-ended for each release you unticked.
Record an undeployment
When a service no longer runs somewhere — it was switched off, or moved — say so. You need Pacts → Edit.
- On the board, open the environment's ⋯ menu and click Record an undeployment (shown when something runs there).
- In Service, choose what was undeployed (
Reporting Job). - In Instance, choose the copy that went (
us-east), or The only instance. - Click Record undeployment.
The deployment stays in the history, and can-i-deploy no longer counts it. The same, from
anywhere shows apiome pact record-undeployment --pacticipant reporting-job --environment production --application-instance us-east. When the service is not deployed to that instance, the
dialog says what is deployed instead — nothing is undeployed on a guess.
End support for a release
When users can no longer run an old release, end its support. You need Pacts → Edit.
- On the board, under Released to users, click End support (the ⊖ beside the version).
- Read what it means and click End support.
From then on can-i-deploy no longer requires other services to stay compatible with it: its pacts
no longer hold its counterparts back. The release stays in the history. The same, from anywhere
shows apiome pact record-support-ended --pacticipant mobile-app --version 5.1.0 --environment production.
Read an environment
Click an environment's name. The page is at /ade/dashboard/pacts/environments/<name>.


/ade/dashboard/pacts/environments/production- Overview — the name tooling uses, whether it is a production environment, and whether a version must have a pact before it can be deployed here (Contract required).
- Deployed now — each version deployed here, its instance (Unnamed for the environment's
only instance) and when it was recorded. An empty environment shows the
record-deploymentcommand. - Released and supported — each release supported here (shown when there is one).
- Deployment history — every deployment recorded here, current or replaced, newest first: when, the pacticipant and version, the instance, Deployed or Replaced (with when it stopped), and who recorded it. Choose a Pacticipant to see only its deployments; click Load more for the next 25.
Each section loads on its own: when the history cannot be read, the rest of the page stays and the history offers Try again.
Simulate a deployment
- On an environment's page, click Simulate a deployment.
- In Pacticipant, type or choose the pacticipant you want to deploy (for example
ledger-api). - In Version, type or choose the version — the newest versions are suggested, such as the one running in staging.
- Optional: in Application instance, name the instance you deploy to (
eu-west). Leave it empty for the environment's only, unnamed instance. - Click Simulate.
The page is at /ade/dashboard/pacts/environments/<name>/simulate, and the address carries the
question (?pacticipant=ledger-api&version=…), so you can share a simulation. Opening such an
address simulates straight away.


/ade/dashboard/pacts/environments/production/simulateRead the answer
-
Can … go to …? — the version's own can-i-deploy verdict: Deployable, Not deployable or Not known yet, with the reason. Below it, what the deployment would replace in that instance, or that it is the pacticipant's first deployment there, or that the version is already deployed (then nothing changes).
-
What else changes — every version of a pacticipant that has a pact with yours, and that is either running in this environment or deployed or released elsewhere (staging, say) but not here yet. For each: its side of the pact (consumer or provider), its verdict Now and After the deployment (click Why for the reasons), and the Effect:
Effect Meaning Breaks A version running here is deployable now and would not be. Blocks A version elsewhere could come here now and could not. Changes The verdict moves between Not deployable and Not known yet. Fixes A version running here is not deployable now and would be. Clears A version elsewhere cannot come here now and could — deploy this first. No change The verdict stays the same. The line above the table counts the effects, the ones that need attention first.
-
Not checked — the simulator checks at most 20 versions; any others are listed with the reason, never dropped.
-
Deploy from a pipeline — the
apiome pact can-i-deploycommand followed byapiome pact record-deployment, so the deployment is recorded only when can-i-deploy says yes.
Click Check again to simulate once more against what is recorded now — for example after a provider published a new verification result. The time the answer was read is shown beside the verdict.
How the simulator decides
For each version it checks, the simulator asks can-i-deploy twice: once against the environment as
recorded, once with your version in place of the one it replaces in that instance (every other
instance and supported release stays). The answers come from the same verdict as can-i-deploy, so
a Clears today is what can-i-deploy answers once you deploy.
Use the API
The dialogs write through the Pact Broker routes:
POST …/pact-broker/environments, PUT / DELETE …/environments/{uuid},
POST …/versions/{version}/deployed-versions/environment/{uuid} (with ?overrideCanIDeploy=true
for a deployment recorded over a “no”) or …/released-versions/environment/{uuid}, and
PATCH …/deployed-versions/{uuid} {"currentlyDeployed": false} or
PATCH …/released-versions/{uuid} {"currentlySupported": false} to end one. Recording a
deployment or a release stores can-i-deploy's answer at the time; ending one stores who ended it.
The pages read these REST routes, all needing pacts:view:
| Route | What it returns |
|---|---|
GET /v1/tenants/{tenant}/pact-environments/board | The board: each service's running versions per environment with verdict, next (the version that could go, with its verdict) and released; idle rows; notChecked past 100 verdicts. |
GET /v1/tenants/{tenant}/pact-environments/history | Every deployed, undeployed, released and support-ended event, newest first, with actor, verdict and replaces; environment, pacticipant, cursor, limit (≤ 50). |
GET /v1/tenants/{tenant}/pact-environments | Every environment with what is deployed and released to it now. |
GET /v1/tenants/{tenant}/pact-environments/{name}/deployments | The deployment history; pacticipant, cursor, limit (≤ 50). |
GET /v1/tenants/{tenant}/pact-environments/{name}/simulate | The simulation; pacticipant, version, optional applicationInstance. |
See the REST reference for the full shapes.
When something is refused
| What you see | Why | What to do |
|---|---|---|
| Permission denied | You do not hold Pacts → View. | Ask a workspace admin for the role. |
| No such environment | No environment has that name in this workspace. | Open Environments and choose one. |
pacticipant-not-found / pacticipant-version-not-found | The pacticipant or version is not recorded. | Check the spelling; publish the version's pacts first. |
| The application instance … cannot start or end with a space | The instance has surrounding spaces or a control character. | Type the instance exactly as your deploy job records it. |
| can-i-deploy says no. Tick Record it anyway… | can-i-deploy answered no when you recorded, and the box was not ticked. | Read the reasons; tick Record it anyway only if the deployment already happened. |
| Production still has 9 versions running. | You tried to delete an environment something runs in. | Record their undeployment or end their support first. |
| … is not currently deployed to … environment. Cannot record undeployment. | Nothing of that service runs in that instance. | Choose the instance the dialog lists, or nothing needs undeploying. |
| … is not currently released in … environment. Cannot record support ended. | That version's support has already ended, or it was never released there. | Check History. |
| Another environment is already called … | The name is taken in this workspace. | Choose another Name. |
Related
- Environments and deployments — create environments and record deployments from CI.
- Can I deploy? — the verdict the simulator is built on.
- Pacticipants — each pacticipant's environments.