fix(pi): contain malformed extension model metadata - #195
Draft
yaacovcorcos wants to merge 2 commits into
Draft
Conversation
Reimplement the Pi model-discovery safeguards from Emanuele-web04/synara commits f5ec4b65f3ba98cc716c5f9890194dcda8f7cbda, 2f33cd70a3a01750dc7d429747541b5417c03997, and f41a68a28b0e0d8f03bc85055b7836bf50ee611f (MIT). Display metadata is normalized while registry identity remains byte-for-byte resolvable; malformed identities are omitted without failing the catalog.
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.
User effect
Pi model discovery now contains malformed extension metadata per model instead of losing the whole catalog. Display-only names are trimmed or given safe fallbacks; provider/model identities remain byte-for-byte resolvable. Blank, trim-mutating, or slash-ambiguous provider identities are omitted so one row cannot select a different provider/model.
Donor provenance and disposition
Emanuele-web04/synaracommitsf5ec4b65f3ba98cc716c5f9890194dcda8f7cbda,2f33cd70a3a01750dc7d429747541b5417c03997, andf41a68a28b0e0d8f03bc85055b7836bf50ee611f(MIT).Exact revision and file impact
3829e5dd82a4760184aabafa4c96127744ef79f232eb90fd804d7e9feeaa06b20e97c20c70a98601fix/upstream-pi-model-metadata-20260803apps/server/src/provider/Layers/PiAdapter.ts(+50/-22), adding the descriptor containment and identity round-trip boundary.apps/server/src/provider/Layers/PiAdapter.test.ts(+120), adding valid identity, display normalization/fallback, malformed identity, provider-slug collision, and thinking-metadata regressions.Verification
bun run test: all 12 Turbo tasks passed in 3m17s.git diff --check: passed.Independent reviews
Exactly three non-author, read-only reviews inspected the exact final base/head:
Rollback, limitations, and dependency status
/.