Allow discovery refresh to adopt redundant model names #34
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/nexus#34
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Let existing provider catalogues adopt authenticated discovery when their only extra model field is a redundant
nameequal toid.Primary goals:
discover-refreshto acceptnameonly when every value exactly equals that model'sid, then omitnamefrom the discovered replacement.compatorthinkingLevelMapthat discovery cannot regenerate.add --models-file, becauseaddrefuses an existing provider.Current state and specifics
The refresh allowlist at
scripts/pi-provider:851-856classifies everynamefield as hand-authored, including the common open-world catalogue shape{ "id": "model-a", "name": "model-a" }. Such a catalogue cannot enter the discovery lifecycle even though dropping that redundant field loses no information.The resulting diagnostic says to refresh with manual
add --models-file, butscripts/pi-provider:988-991rejects bothaddanddiscover-addwhenever the provider already exists. The suggested command therefore cannot perform an in-place update.The checks around
tests/pi-provider.sh:1816-1832correctly prove that a custom name is refused before Age or HTTP. Keep that witness, and add a distinct fixture wherename == idis accepted and normalized away. This recommendation follows from post-merge testing of PR allod/nexus#33; its 321 synthetic assertions and the full flake checks otherwise pass.Scope
In scope: redundant-name adoption during
discover-refresh, actionable refusal text for unsupported existing fields, documentation, and focused tests. Out of scope: merging arbitrary hand-authored model metadata, changing manualaddinto a general update command, or weakening refusal for fields discovery cannot reproduce.