Deployment
The Deployment Engine reads .ags/deployment.yml: ordered environments, required checks /
tests / approvals per stage, and what must pass before merging to the protected branch.
Config
schemaVersion: 1
environments:
- id: local
requiredChecks: []
requiredTests: [unit]
requiredApprovals: 0
- id: bench
requiredChecks: [build]
requiredTests: [unit]
requiredApprovals: 0
- id: staging
requiredChecks: [build, health]
requiredTests: [unit, e2e]
requiredApprovals: 1
- id: production
requiredChecks: [build, health]
requiredTests: [unit, e2e]
requiredApprovals: 1
deploymentOrder:
- local
- bench
- staging
- production
mergeTarget: main
requireBeforeMerge:
- bench
- stagingenvironments[]— id + requiredChecks / requiredTests / requiredApprovalsdeploymentOrder— promotion sequence (no skipping)mergeTarget— protected branch namerequireBeforeMerge— environments that must be green before merge
Promotion flow
- Agent work lands on a feature branch under CAP + staging.
- Versioning records the bump / changelog for the release candidate.
- Promotion engine advances
local → bench → staging → productiononly when that environment’s checks pass. - Merge to
mergeTargetrequires the listed environments.
# Promotion check
# environment: staging
# requiredChecks: [build, health]
# requiredTests: [unit, e2e]
# requiredApprovals: 1
# → ok: false until health endpoint + e2e + approval recorded Works with
- Versioning — what version you are promoting
- Health / Observability / Rollback engines — runtime signals and undo paths
- Deployment showcase — animated pipeline