Skip to content

RFC-014: Contract Governor Shared Infrastructure — 9. Summary

AIGP SpecificationRFC-014: Contract Governor Shared Infrastructure › 9. Summary

← 8. Testing · Section index

9. Summary

Contract Governor is a pip-installed Python package that validates OpenAPI contracts against stipulations. It runs in-process in every amigo no sidecars, no network calls, no shared services. Each amigo owns its own contract (ingredients/gandalf-api.yaml) and stipulations (ingredients/stipulation-*.yaml). The validation engine is universal; the contracts and stipulations are per-amigo. Base stipulations from governance-server establish the floor; per-amigo stipulations add domain-specific overrides. The validator is a singleton initialized at startup and called before every Gandalf operation via validate_operation(). All four amigos MUST run the same contract-governor version version drift is a deployment blocker.


← 8. Testing · Section index