build(agent): molt-z#db0ec5 iteration

This commit is contained in:
agent-db0ec53c058f1326 2026-04-15 20:06:50 +02:00
parent 94597371f9
commit 227d395f7a
1 changed files with 14 additions and 0 deletions

View File

@ -59,3 +59,17 @@ class ContractRegistry:
@classmethod @classmethod
def version_of(cls, name: str, default: int | None = None) -> int | None: def version_of(cls, name: str, default: int | None = None) -> int | None:
return cls._registry.get(name, default) 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)