Environment Swimlane

The Studio UI at Studio > HxDeploy shows a horizontal swimlane of all registered environments. Each environment card displays the currently deployed package version, last deployment timestamp, and live health status. The Promote button on each card initiates a promotion to the next environment in the pipeline.

┌─────────────────┐ Promote > ┌─────────────────┐ Promote > ┌─────────────────┐ │ Development │ │ Staging │ │ Production │ │ v1.4.2 ✓ │ │ v1.3.1 ✓ │ │ v1.2.9 ✓ │ │ healthy │ │ healthy │ │ healthy │ └─────────────────┘ └─────────────────┘ └─────────────────┘

Risk Classification

Risk LevelDetermined ByPromotion Behaviour
Low autoDocumentation-only change, minor field label update, notification message editAuto-deploys immediately on promotion request — no human approval needed
MediumNew form field added, step configuration changed, SLA duration updatedRequires one approval from a Manager or Admin. Deployment queued until approved.
HighNew step type added, connector attached, stage transition changed, new connector integrationRequires two approvals — at least one must be from an Admin
Critical criticalBreaking database migration, access group restructure, data model change, connector credential rotationTwo approvals + active change window + all health checks passing
Risk is computed automatically by diffing the new package against the currently deployed version. You can override the risk level upward (e.g. mark a Low as High) with a justification note. You cannot override downward.

Change Windows

Navigate to Studio > HxDeploy > Change Windows. A change window defines a time period during which Critical deployments are permitted.

FieldDescriptionExample
NameHuman-readable labelWeekly Maintenance Window
Start TimeDay of week + HH:MM in the configured timezoneSunday 02:00
End TimeDay of week + HH:MMSunday 04:00
TimezoneIANA timezone stringEurope/London
EnvironmentsWhich environments this window applies toproduction
Low, Medium, and High risk deployments are not restricted to change windows. Only Critical deployments enforce the window. An attempt to promote a Critical package outside an active window returns a 409 error.

Health Checks

Before a Critical deployment proceeds, HxDeploy runs these checks in sequence. If any fail, the deployment is blocked:

Approval Workflow

  1. Developer clicks Promote on a package in the swimlane.

  2. HxDeploy diffs the package against the current deployed version and computes the risk level. A Deployment Run record is created with status Pending Approval.

  3. Required approvers receive an in-platform notification. They navigate to HxDeploy > Runs to review the diff (fields changed, step types added, connector modifications) and either Approve or Reject with Comment.

  4. Once all required approvals are collected (and a change window is active for Critical), HxDeploy executes the deployment: applies pending SQL migrations, hot-reloads services, runs health checks.

  5. The Deployment Run transitions to Deployed or Failed. All steps — diff, approvals, health check results — are permanently recorded in the audit trail.

Frozen Promotion Packages

A promotion ships a package: built once from an explicit selection, sealed (frozen and checksummed), and pushed as those exact bytes. What QA tested and what production receives are the same bundle.

build (draft)  >  seal (checksum)  >  promote (run binds package + checksum)  >  approve  >  push

Who May Promote

Promotion is privileged. Fourteen HxGuard actions cover HxDeploy and the app registry:

Two endpoints authenticate machines rather than people and sit outside these gates: the bundle receiver (an environment's import key) and the CI/CD callback (an HMAC signature).

Promoting Bots and Schedules

A package can carry bot definitions and schedules. They arrive inert.

API Reference

# Initiate a promotion
curl -s -X POST http://localhost:8200/api/v1/deploy/promote \
  -H "Authorization: Bearer $ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"from_env": "staging", "to_env": "production", "package_id": "pkg-uuid"}'

# Build a package from a selection, then seal it
curl -s -X POST http://localhost:8200/api/v1/deploy/packages \
  -H "Authorization: Bearer $ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "release", "version": "1.4.0", "selection": {"sections": {"case_types": ["ct-uuid"]}}}'

curl -s -X POST http://localhost:8200/api/v1/deploy/packages/{package_id}/seal \
  -H "Authorization: Bearer $ADMIN_TOKEN"

# Approve a pending deployment run
curl -s -X POST http://localhost:8200/api/v1/deploy/runs/{run_id}/approve \
  -H "Authorization: Bearer $ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"comment": "Reviewed diff, all changes look correct"}'