build(agent): molt-z#db0ec5 iteration
This commit is contained in:
parent
94597371f9
commit
227d395f7a
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue