Skip to main content

Deploy verify

A landed coding session waits for your CI to deploy its commit, confirms the commit is running, then runs your verify steps against that environment and fixes forward on failure.

A coding session ends when its change lands on development. Deploy verify extends that: the session waits, without a sandbox, until your own CI/CD has deployed the landed commit to a workspace Environment. It confirms the commit is running by asking the running app, then runs your verify: steps against it. If they fail, the session fixes forward.

Why it matters: the gates a session passes run in a sandbox that never saw your real app. Verify proves the change works where it is deployed.

SchemaBounce does not deploy anything. Your CI/CD deploys. SchemaBounce confirms and tests.

How a session runs​

  1. Land. The session passes its gates and lands on development (complete.endpoint: land).
  2. Waiting for deploy. The session parks. It holds no sandbox, slot or compute. SchemaBounce reads each service the verify block names until the landed commit shows up. Your CI can announce the deploy to make that read happen at once.
  3. Deploy observed. Every named service runs a commit that contains the landed commit.
  4. Verifying. A verify Job (or a runner you own) runs your steps against the Environment.
  5. Result. If every step passes, the session completes as verified. If one fails, the session fixes forward or holds for you (see Holds).

A commit counts as running when it is equal to, or an ancestor of, the commit the service reports, and the service reported that same commit stableReads times in a row. One read is never enough, so a rolling deploy with mixed pods does not settle early.

Set it up in six steps​

  1. Trust your CI. On the Environment, open Trusted CI and add the repository. This list says both "this CI may announce deploys here" and "this repository deploys here".
  2. Add services. On the Environment's Services tab, add each thing the stage runs.
  3. Serve the commit. Add one route to your app. See Version endpoint examples.
  4. Announce deploys with one step in your CI. See Announce deploys from CI. Optional but faster.
  5. Add a verify: block to .schemabounce/pipeline.yaml.
  6. Grant secrets if your steps sign in. See Secrets for verify steps.

If your service is on a private network, also read Verify in your own Kubernetes cluster.

Environment services​

A service is something the stage runs: a web app, an API, a worker. You need environments:manage to add one. Add it on the Environment's Services tab, or call the API (POST /api/v1/workspaces/<workspace_id>/environments/<env_id>/services, camelCase keys):

{
"name": "web",
"repository": "acme/web",
"baseUrl": "https://app.example.com",
"hosts": ["api.example.com"],
"versionCheck": { "http": { "path": "/.well-known/schemabounce/version", "json": "commit" } },
"stableReads": 3,
"reach": "hosted",
"deployWithinSeconds": 1800
}

The Services tab has a Check now action that shows the commit the platform reads right now.

FieldConsole labelMeaningLimits and default
nameNameHow verify: steps refer to it.Lowercase letters, digits and dashes, letter first, 63 characters at most. Unique per Environment.
repositoryRepositoryThe repository whose commits it runs, owner/name.Must be in the Environment's trusted repositories.
baseUrlAddressWhere verify points. Becomes SB_ENV_URL.HTTPS for hosted reach. HTTP or HTTPS for a runner.
hostsOther hosts verify may reachOther hosts this service uses, such as an API on another name or a CDN.Bare host names, no port. The baseUrl host is always included.
versionCheckHow the running commit is readHow the platform reads the commit.Default: GET /.well-known/schemabounce/version, JSON field commit. See Version endpoint.
stableReadsReads in a row before it counts as settledReads in a row that must return the same commit.1 to 10, default 3.
reachWhere verify reaches itWho runs verify against it.hosted (default) or runner:<label>. See Where verify runs.
deployWithinSecondsMinutes to wait for a deploy to show upHow long to wait for the landed commit.1 minute to 6 hours, default 30 minutes.

Why hosts matters: verify steps and browser checks may reach only the service's hosts. A page that calls api.example.com needs that host listed, or the call is refused.

Hosted reach reaches public addresses only. Every host must resolve to a public IP, or the service is refused.

The platform reads a service only while CI announced a deploy of it or a session waits on it. It reads every 30 seconds, and every 2 minutes once the service has been unchanged for 10 minutes. An announcement makes it read at once.

Which Environment a repository uses​

.schemabounce names an environment, never a host. SchemaBounce resolves environment: development to the one active Environment of that type whose trusted repositories include the repository. With two matches the session holds and names both; write environment: {name: dev-eu} to pick one. With none, it holds.

The verify: block​

verify: sits in pipeline.yaml beside complete:. It needs complete.endpoint: land, because a branch or a pull request is not deployed to a shared environment.

complete:
endpoint: land
land:
target: development

verify:
environment: development
maxRounds: 2
steps:
- name: e2e
service: web
env:
E2E_EMAIL: ${{ secrets.E2E_EMAIL }}
E2E_PASSWORD: ${{ secrets.E2E_PASSWORD }}
commands:
- name: smoke
run: npx playwright test e2e/smoke --reporter=line
timeout: 15m
- name: api
service: api
when:
paths: ['schemabounce-api/**']
commands:
- name: contract
run: go test ./e2e/api/... -run Contract
- name: slow-report
run: go test ./e2e/api/... -run Report
severity: advisory
- name: look
service: web
uses: verify/browse
guidance: >-
Sign in, open Settings, and confirm the new Billing tab shows the plan name
and a Manage button. Report anything that looks broken.
login:
url: /login
username: ${{ secrets.E2E_EMAIL }}
password: ${{ secrets.E2E_PASSWORD }}
totp: ${{ secrets.E2E_TOTP_SEED }}
fields:
username: 'input[name=email]'
password: 'input[type=password]'
totp: 'input[name=code]'
submit: 'button[type=submit]'

Block fields​

FieldMeaning
environmentAn environment type (development) or {name: dev-eu}. Nothing else.
maxRoundsFix-forward rounds after the first verify. 1 to 5, default 2.
steps1 to 10 steps.

Step fields​

FieldMeaning
nameRequired. Unique, and not the name of any pipeline step.
service or servicesRequired. The services the step verifies. Verify starts when every named service runs the landed commit. Lowercase letters, digits and dashes.
commandsA command step. At least one command.
when.pathsRun the step only when the session touched matching paths.
envEnvironment for every command in the step. Up to 16 variables. A command can also set its own env.
usesOnly verify/browse. A browser step takes guidance, not commands or env.
guidanceRequired on a browser step. What to check, up to 2,000 characters.
loginOptional, browser steps only. See Browser checks.

A verify block takes one browser step. Put several checks in that step's guidance.

Command fields​

A command has the same shape as a pipeline command:

FieldMeaning
nameRequired. Unique within the step.
runRequired. The shell command.
severityblocking (default in a verify step) or advisory. A failing advisory command is recorded and does not fail the step.
timeoutA duration such as 15m. Default 10 minutes, at least 5 seconds, at most 30 minutes.
whenpaths: filter, as on a step.
envVariables for this command.

Each step starts in a clean world: no process, temporary file or installed dependency from an earlier step survives. Commands inside one step share a world. A blocking failure ends the step, so later commands in it do not run.

Secrets syntax​

A value that holds a secret is exactly ${{ secrets.NAME }}, alone in the value, with an UPPER_SNAKE name of up to 100 characters. Text around it, a lowercase name or a second reference in one value is refused. Browser login values follow the same rule: password and totp must be a reference, username may also be a literal.

What the parser refuses​

  • verify without complete.endpoint: land.
  • An environment that is not a type or {name: ...}. A URL, a host or an extra key is refused, because hosts belong to the workspace.
  • maxRounds outside 1 to 5, no steps, or more than 10.
  • A step with no service, a service named twice, or a service name with a dot or slash.
  • A step name used twice, or equal to a pipeline step name.
  • A command step with no commands.
  • An env name starting with CS_, SB_, SCHEMABOUNCE_, KOLUMN_, AWS_ or LD_.
  • An env value that contains ${{ but is not exactly one ${{ secrets.NAME }}.
  • uses: anything but verify/browse.
  • A browser step with commands or env, with no guidance, or a second browser step in the block.
  • A login on a step that is not a browser step, or a login that breaks the rules on the browser page.

Services in one round must share one reach. A block that names a hosted service and a runner service in the same round holds with "Verify setup is invalid" and names each service and its reach.

Variables SchemaBounce sets​

VariableValue
SB_ENV_NAMEThe Environment's name.
SB_ENV_URLThe baseUrl of the step's service.
SB_SERVICE_<NAME>_URLOne per named service, name uppercased with dashes as underscores.
SB_DEPLOYED_SHAThe commit the service reported running.
SB_LANDED_SHAThe commit the session landed.
SB_BASE_SHAThe commit the session started from.
SB_CHROMIUM_PATHSet only on the browser sandbox image.

Citing verify as proof​

A plan's acceptance criterion can cite a verify result as verify:<step>[/<command>]. The planner sees these only when the session will land and the Environment resolves. A passing command proves a behaviour. A browser check is a judgment and never proves a behaviour on its own: a behaviour proven only by a browser check stays unproven, so the session does not complete on it.

Secrets for verify steps​

Verify reads secrets from the one store, Settings > Secrets (dec-190). Reference one in env or login as ${{ secrets.NAME }}.

  • Grant it to the repository. In the secret's access list, choose the Repository (deploy checks) grantee and enter owner/name. That grant works for the repository's verify steps only. A coding turn never receives it.
  • Allow the hosts. Every host of the service under test must be in the secret's Allowed hosts. Otherwise the session holds.
  • Per-environment values. An override on the Environment beats the workspace value, so the same name resolves to the development value in development.
  • At least 8 characters. A shorter value is refused, because SchemaBounce masks each value in output and a short one would blank unrelated text.
  • Only the names a step references reach that step. A secret with the "ask" policy is refused, since nothing in a verify run can ask a person.

Output is masked before it is stored. Masking covers each value as stored and with surrounding whitespace trimmed. It does not cover encoded forms such as base64 or URL encoding, so do not print a derived form of a secret.

A secret granted to the repository can be read by any step that names it. The repository's own code is not a boundary against itself. The boundaries are the host-bound grant, the round's network limit and masked output. See Secrets for the store itself.

Where verify runs​

A service's reach decides who runs verify against it.

ReachWho runs itCan reachRead more
hostedA SchemaBounce verify JobPublic HTTPS hosts only (dec-080)This page
runner:<label> on a laptopA runner you own, on your machineWhatever that machine reaches, limited by allowed_hosts if you set it. Off until you opt in.Version endpoint
runner:<label> in your clusterThe runner chart's agent, which makes a locked-down pod per roundThe service hosts of the round, nothing elseVerify in your own Kubernetes cluster

A service behind a VPN, on a private IP, on a home lab or on-premises is the runner case. A browser check is the exception: it runs only on hosted services. See Browser checks.

The hosted verify Job​

Each round runs in an isolated Job built from the session's sandbox image. It gets the landed tree, no session token, no model credentials, no platform MCP and no git credential. It reaches only the service hosts plus the package registries of the ecosystems in runtime.yaml. Cluster DNS is reachable.

After each command the platform re-reads the running commit. If it no longer contains the landed commit, the result is void with the cause "The running version changed while verify ran". A void result is never a pass. If the version could not be read, the result is void with "The service's version could not be read".

Playwright browsers​

Hosted verify cannot run the Playwright browser download: those downloads come from storage CDNs that the package proxy refuses. Use the browser sandbox image, which carries Chromium, and point Playwright at it:

// playwright.config.ts
export default {
use: {
launchOptions: { executablePath: process.env.SB_CHROMIUM_PATH },
},
};

Set PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 where you install dependencies, and match your Playwright version to the image's Chromium. A cache of ~/.cache/ms-playwright cannot help in a hosted session, because no hosted session can ever fill it. On a machine you control, cache that directory as you would in any CI.

This is your own Playwright tests running as a command. It is separate from the agent-driven browser check.

Session states​

PillMeaningYou do
Waiting for deployParked until the landed commit runs in every named service.Nothing. It resumes on its own.
VerifyingA verify round is running.Nothing.
Fixing forwardA verify step failed and the session is writing a fix. The log shows the round, such as "round 1 of 2".Nothing.
Held for youA named cause needs a person. The card states the cause and the fix.Fix the cause, then Resume.
VerifiedEvery step passed on the deployed commit.Nothing.

The session timeline records the landed commit, the deploy observation, each verify round with the version it ran on, and each fix-forward round. A browser check shows its verdict, findings and screenshots.

Holds​

Each hold names its cause and its fix on the session and in the Inbox. Resume re-checks the cause. This is every hold the platform raises:

HoldWhat it means and what to do
Deploy not seen in timedeployWithin passed without the commit running. Check that your pipeline deployed the landed commit and that the version check shows it. Resume to wait again.
Deploy check unavailableThe platform could not look up the environment. Resume to try again. If it repeats, report it.
No environment foundCreate the Environment, or name an existing one in the verify block.
More than one environment matchesName the environment in the verify block so only one matches.
Service not in the environmentAdd the service on the Services tab, or correct its name in the verify block.
No runner picked the work upStart a runner with the service's label (Code, Runners). Check that its owner turned deploy verify on in runner.toml and that the label matches the service's reach. Resume to offer the work again.
The runner does not allow the service's hostsAdd the service's host to [deploy_verify] allowed_hosts in the runner's runner.toml, or change the service's hosts on the Services tab.
Secret not foundCreate the secret under Settings, Secrets.
Secret not granted to this repositoryGrant the secret to the repository under Settings, Secrets.
Secret not allowed for this hostAdd the service's host to the secret's Allowed hosts.
Secret too short to maskUse a value of 8 or more characters.
Verify setup is invalidCorrect the verify block in .schemabounce. A resume reads the block the session started with, so run the work again after fixing it.
Browser checks need a hosted serviceA browser check cannot reach a service that only a runner reaches. Move the browser check into its own verify block for a hosted service, then run the work again.
Verify could not startResume to try again. If it repeats, report it. For a browser check the detail can say no credential is available: see Billing.
Verify did not runThree verify runs in a row produced no result. Check the cluster's capacity (or your runner), then resume.
Verify timed outVerify ran past its time limit. Resume to run it again.
Landed code could not be readCheck that the GitHub connection can read the repository, then resume.
Environment changed during verifyThe running version moved while verify ran, so no run gave a verdict. Wait for deploys to settle, then resume.
Fix-forward rounds used upRead the failing commands and fix them yourself or in a new session. Resume gives a fresh budget.
Other commits are in the failing rangeDecide whether those commits caused the failure. Resume verifies again with a fresh budget.
Failure not tied to a changeSee Fix forward and attribution. Only a person can press its button.
Fix-forward could not startResume to try again. If it repeats, report it.
Verify passed, session not finishedResume to try finishing the session again.

Fix forward and attribution​

The change is already on development, so a failed verify cannot undo it. The session fixes forward instead: it gets the masked failure output and the failing command names, writes a new commit, passes the same gates, lands, waits for the deploy and verifies again.

  • Limit. maxRounds, default 2, at most 5. When the rounds are spent the session holds.
  • Attribution. The failing range is every commit in the running version that was not in the last version that passed verify. The session fixes forward only when every commit in the range came from this session. If another session's or person's commit is in the range, it holds and the Inbox card names the range.
  • No earlier pass. When no version of the service has passed verify yet, the failure cannot be tied to a change. The hold offers "Accept as this session's failure and fix forward". Only a person can press it.
  • Browser checks. A fail or unsure verdict counts as a failed step. The fix-forward turn gets the findings and screenshot ids, never a secret.

Security model​

  • Two containers, two jobs. A verify round is a pod of two containers. The runner container holds the round's secrets and the channel back to SchemaBounce. The executor container runs your commands as a different user and mounts no secret, so a command sees only the variables its step names. The hosted Job and the runner chart build the same pod.
  • No platform power. A round gets no session token, no model credentials, no platform MCP and no git credential.
  • Network. A hosted round reaches the service hosts and package registries through an egress proxy that asks core-api for each connection. A round in your own cluster reaches the round's service hosts and nothing else, so it cannot install packages from a registry.
  • Secrets. One store, a repository grant, a host allowlist and masked output.
  • Announcements are hints. A CI call or a GitHub event never proves a deploy. Only a read of the running app does.
  • Browser agent. It reads untrusted pages and never sees a password. See Browser checks.
  • Runner on a laptop. Commands run as your user with your files and network. See the laptop caveat.

Billing​

Command steps run in a SchemaBounce Job or on your runner and call no model. A browser check runs a model turn and bills as session spend, in this order (dec-149, dec-324):

  1. The session owner's own license for the engine's provider.
  2. Workspace credits, under the workspace's existing review-fallback setting.
  3. Neither: the session holds with "Verify could not start". A license that exists but is unusable is a hold, never a quiet fall through to credits or the API.

Not supported yet​

  • A Cloudflare Access-protected environment. A verify round cannot present Access credentials, so a service behind Access cannot be verified. Verify a service that is not behind Access, or expose a dev host through a tunnel instead (see Verify in your own Kubernetes cluster).
  • A browser check on a service only a runner reaches. It holds with "Browser checks need a hosted service".
  • Per-branch preview environments. Only shared environments are verified.
  • Provider-shaped deploy webhooks for hosts such as Vercel or Netlify. Polling covers them.

Continue exploring