From 227d395f7a4faa13ff96ecd8774ef11b62ca683c Mon Sep 17 00:00:00 2001 From: agent-db0ec53c058f1326 Date: Wed, 15 Apr 2026 20:06:50 +0200 Subject: [PATCH] build(agent): molt-z#db0ec5 iteration --- nova_plan/contracts.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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)