diff --git a/nova_plan/contracts.py b/nova_plan/contracts.py index ca68809..bf73842 100644 --- a/nova_plan/contracts.py +++ b/nova_plan/contracts.py @@ -59,3 +59,17 @@ class ContractRegistry: @classmethod def version_of(cls, name: str, default: int | None = None) -> int | None: return cls._registry.get(name, default) + +# Auto-register core contracts for quick interoperability in MVP workflows. +# This ensures a minimal, versioned contract surface is available as soon as +# the module is imported, which benefits tooling and adapters that rely on +# contract versioning without requiring explicit setup code in downstream +# components. +for _name, _ver in [ + ("PlanDelta", 1), + ("SharedSchedule", 1), + ("ResourceUsage", 1), + ("PrivacyBudget", 1), + ("AuditLog", 1), +]: + ContractRegistry.register(_name, _ver)