Skip to content

fix: preserve provider pins in slot defaults#253

Merged
PaulFidika merged 1 commit into
masterfrom
fix/provider-pins
Jul 14, 2026
Merged

fix: preserve provider pins in slot defaults#253
PaulFidika merged 1 commit into
masterfrom
fix/provider-pins

Conversation

@PaulFidika

Copy link
Copy Markdown
Contributor

What changed

  • Preserve Civitai version in slots[].default_checkpoint.
  • Preserve Hugging Face and ModelScope revision in slots[].default_checkpoint.
  • Add an end-to-end discovery contract test covering the binding and slot-default representations.
  • Bump gen-worker to 0.25.1.

Why

The binding serializer already emitted provider-specific immutable pins, but the slot-default serializer dropped them. Tensorhub therefore received a pinned function binding alongside an unpinned default checkpoint, which could mirror or resolve a different upstream model version.

Impact

First-publish slot seeding and runtime fallback now refer to the same immutable upstream artifact.

Validation

  • uv lock --check
  • mypy src/gen_worker — 114 files clean
  • pytest tests/test_slot_discovery.py tests/test_drain_flush.py -q — 10 passed
  • CPU-equivalent full suite — 1,057 passed, 26 skipped
  • uv build — sdist and wheel built successfully

@PaulFidika PaulFidika merged commit 1e3a624 into master Jul 14, 2026
1 check passed
@PaulFidika PaulFidika deleted the fix/provider-pins branch July 14, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant