v0.7.3
Changes
- feat:
ModelRefgains ametadata: dict[str, Any]field (default empty). Thread throughregister()andregister_group(). - feat:
register_group(metadata=...)now stores metadata on the composite ModelRef itself. Previously broadcast to everylink_dependencycall (unintended). - feat:
composite_summary(model_types=...)— optional filter for callers treatingml_model/heuristic(or other types) as composites. Default behavior preserved (model_type="composite"). - fix: narrow
ALTER TABLE ADD COLUMN METADATA VARIANTexception suppression to "already exists" only. Previously swallowed all DDL errors. - schema: SQLite + Snowflake backends carry a
METADATAcolumn. Existing deployments auto-migrate via idempotentALTER TABLE.
Backward compatibility
Fully backward compatible. Existing serialized ModelRef data without a metadata field loads with metadata={}.
Upgrade
pip install -U model-ledger==0.7.3Or for git-pinned consumers:
model-ledger = { git = "https://github.com/block/model-ledger.git", tag = "v0.7.3" }