Skip to content

RFC-014: Contract Governor Shared Infrastructure — 1. Purpose

AIGP SpecificationRFC-014: Contract Governor Shared Infrastructure › 1. Purpose

Section index · 2. Architecture →

RFC-014: Contract Governor Shared Infrastructure

PRIVATE AND PROPRIETARY — NOT A PUBLIC RFC. Owned by Kanjani AI Research & Causum. See NOTICE.md.

1. Purpose

The Contract Governor Shared Infrastructure defines how the contract-governor Python package is distributed, configured, and consumed across all four amigos. Contract Governor is the universal validation engine that enforces OpenAPI contracts against stipulations the contracts and stipulations are per-amigo, but the engine is shared.

This RFC SHALL ensure:

  • every amigo validates its OpenAPI contract against stipulations before executing Gandalf operations
  • the validation engine is identical across all four amigos (same package, same version)
  • each amigo owns its own contract and stipulation files
  • stipulations follow a hierarchy: base stipulations from governance-server + per-amigo overrides
  • the validator is a singleton per application, loaded at startup, cached for the lifetime of the process
  • version alignment is enforced all amigos MUST run the same contract-governor version

Section index · 2. Architecture →