15

Where we verify

How ChangeBox decides where a fix is checked, and how that fits any engineering team from a two-person startup on GitHub + Slack to an enterprise on Jira, Azure DevOps and Teams.

The model: two checks, two places

A bug is seen in one place (almost always production, by a user, support, or telemetry) and fixed in another (a branch). Between them is a ladder: PR preview → dev/integration → staging → production. Real QA checks the fix on the first rung it lands on, before it ships. The reporter confirms it on the rung where they saw it, after it ships. Two different acts, two different places, often two different people.

CHECK CONFIRM
When Fix merged/deployed to a non-production rung Fix reached the environment the change was reported in
Where First non-production environment it lands on Reported environment (production for user reports)
Who Verifier (fresh agent, test account) Reporter, or Verifier when nobody is waiting
Writes Allowed by default (prefix cbx-verifier-, clean up) Never. Read-only.
Pass Ship-gate evidence (verify.check_passed) Change confirmed
Fail Ship gate holds (Verifier check failed) and the PR goes back to the builder Change reopened with notes
Not checked (Verifier off, could not sign in, timed out, or not machine-checkable) Does not hold. The card lists the criteria as not checked, and the change ships on CI and review Card lists them; a person can confirm afterwards
Inconclusive, after a check that did run Ship gate waits for a person Change stays live; a person verifies

Silence closes the loop. A change still live after the app's auto_confirm_days (default 7, 0 = never) with no reopen and no confirm is confirmed by ChangeBox, with a timeline entry that says so (reason: silence). The reporter and the Verifier both had their turn; a fix that has been in front of users for a week with no word is done. Reopening later still works.

Environments

Each app environment carries:

Field Meaning
kind production · staging · development · preview. Null = inferred from the name.
base_branch Where agents start and open PRs for reports from here. On a ladder every rung shares the entry branch (development).
deploy_branch The branch whose head this environment runs (production, staging). Null = base_branch. PR merges and pushes to it are landings.
origins Where the Verifier may browse. Previews may leave this empty; the deployment URL is used.
live_signal What proves the fix is really there: merge (deploys on merge), deploy (GitHub deployment succeeded), manual.
github_environment GitHub's name for it when different (Preview, production).
agent_browsing read · write. Null = write everywhere but production.
agents_enabled Off = no Verifier here, and no builder launched for reports from here.
accepts_reports Off = the widget refuses this environment's origins. A check rung the Verifier visits but testers should not file from.
verifier_sign_in URL + steps (never a secret); the Verifier identity verifier-<app>@changebox.ai gets magic links through its mailbox.

A landing on environment for a change means (landingRole):

  • the change's reported environment → confirm;
  • a change with no environment → production confirms, anything else checks;
  • reported on a lower rung (an engineer on dev) → dev confirms, staging checks, production is nothing to verify.

How ChangeBox learns a fix landed

All three arrive on the GitHub App webhook (/api/github/webhook):

  1. pull_request closed+merged — the PR's base branch maps to a rung (environmentForBranch). Not the change's reported environment: a PR into development lands on Dev even when the bug was reported on production.
  2. push to any environment's base branch — promotion PRs, merge queues, release trains, direct pushes. Every merged change whose merge commit is reachable from the new head (listed in the payload, or via the compare API) lands on that rung. This is what makes long-lived ladders work without the change being tied to the promotion PR.
  3. deployment_status success — by sha when it is a PR head (previews) or a merge commit; otherwise as a release-train deploy of the branch head, landing every merged change recorded or reachable there.

Team shapes

Trunk-based, previews per PR (Vercel / Cloudflare / Netlify). Environments: Production (main, deploy or merge) and Previews (kind: preview, github_environment: Preview, live_signal: deploy, no fixed origin). CHECK runs on the preview URL before merge; merge queues are just merges. CONFIRM on the production deploy. This is the best shape: isolated, writes are safe, nothing to coordinate.

Long-lived ladder (development → staging → production). Environments map one-to-one with branches through deploy_branch; base_branch stays development everywhere so agents keep opening PRs at the entry rung. CHECK on Dev when the PR merges; staging landing is recorded (and checked again if the app wants it later); CONFIRM when the promotion push or deploy reaches production. The Ship gate is the promotion.

Single environment. Production only. No CHECK (hasCheckEnvironment is false, so policy does not wait for one); CONFIRM is read-only and closes by the reporter, the Verifier, or the telemetry quiet window. Add a staging URL and the check turns on with no other change.

Enterprise. Same loop, different connectors. GitHub (today), GitHub Enterprise Server (same App, different host — the only change is the API base), GitLab / Azure DevOps / Bitbucket (an adapter emitting the same three landing signals: merged-into-branch, pushed-to-branch, deployed-to- environment). Tracking: Jira / Linear / Azure Boards link through external_links; the change stays the record, the ticket mirrors status. Chat: Slack today, Teams Tier 1 connector; cards and confirmations go wherever the team reads. Identity: the Verifier is a real user in the customer's product with its own mailbox, so SSO-walled staging works with a seat, not a shared password.

What we tell customers

Give ChangeBox two URLs: where your users are, and where your PRs land first. A test account on the second. ChangeBox checks every fix there before it ships, and confirms it in front of your users after.

Preview deploys make it better; one staging makes it work; production-only still works, read-only.

Not yet

  • A connector for GitLab / Azure DevOps / Bitbucket landing signals.
  • Re-checking on staging after a Dev check (one check per change today).
  • A per-app choice of which rung must pass before ship (today: the first).
  • Reports filed through MCP without a page URL still default to the app's production environment when the reporter is a member.