RFC-014: Contract Governor Shared Infrastructure — 9. Summary
AIGP Specification › RFC-014: Contract Governor Shared Infrastructure › 9. Summary
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 viavalidate_operation(). All four amigos MUST run the samecontract-governorversion version drift is a deployment blocker.