RFC-014: Contract Governor Shared Infrastructure — 6. Version Management
AIGP Specification › RFC-014: Contract Governor Shared Infrastructure › 6. Version Management
← 5. Stipulation Hierarchy · Section index · 7. Runtime Integration →
6. Version Management
All four amigos MUST run the same contract-governor version. Version drift is a deployment blocker.
6.1 Version Pinning
Each amigo pins the exact version in its requirements:
contract-governor==1.3.144
# analytics-service/docker/requirements.txtcontract-governor==1.3.144
# governance-server/docker/requirements.txtcontract-governor==1.3.144
# runbook-service/docker/requirements.txtcontract-governor==1.3.1446.2 Version Alignment Check
At startup, each amigo reports its contract-governor version. governance-server tracks the version matrix:
import contract_governorversion = contract_governor.__version__ # "2.0.1"| Amigo | Expected | Actual | Status |
|---|---|---|---|
| identity-service | 1.3.144 | 1.3.144 | ALIGNED |
| analytics-service | 1.3.144 | 1.3.144 | ALIGNED |
| governance-server | 1.3.144 | 1.3.144 | ALIGNED |
| runbook-service | 1.3.144 | 1.3.144 | ALIGNED |
6.3 Upgrade Protocol
- Bump version in
contract-governor/pyproject.toml - Build wheel:
python -m build - Update ALL four amigo requirement files to the new version
- Rebuild ALL four Docker images
- Deploy ALL four amigos in the same release window
Partial upgrades are forbidden. If identity-service runs 1.3.145 and analytics-service runs 1.3.144, the deployment MUST be rolled back.
← 5. Stipulation Hierarchy · Section index · 7. Runtime Integration →