Repository navigation
feat(ai): migrate model catalogs to Diffex - #287
Merged
Merged
Conversation
- Validate complete catalog exports before publication - Preserve generation provenance and advance R2 indexes conditionally - Bind serialized uploads to current main and separate staging credentials
- Match cache bodies, validators, and refresh timers to URL and client version - Validate downloads and preserve matching caches on failure - Use the Diffex catalog origin and retire catalog identity exceptions
- Exercise real publication, Worker serving, CLI refresh, and offline recovery with isolated fixtures. - Detect missed generation and production publication independently of content age. - Bind generation and upload to the resolved source revision.
- Emit the publication decision on stdout so the script cannot write an environment-selected file. - Restrict fixture property writes to known providers and cover the CLI regression.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Move model-catalog publication and refresh to the Diffex-owned API at
https://api.diffex.ai/api/models/providers/{providerId}.Existing caches from another URL or client version fall back to bundled models until a valid refresh succeeds.
Reasoning
Create-only revision objects, verified immutable manifests, and conditional index writes prevent interrupted or concurrent publication from exposing incomplete catalogs.
Cache provenance prevents old endpoint data, validators, or refresh timers from suppressing the migration.
Compatibility floors retain supported clients while immutable timestamps keep revalidation stable when content is unchanged.
Changes
0.3.3.Testing
npm run checkpassed on current main plus this branch../test.sh otherpassed after compiling the telemetry prerequisite in the fresh worktree.