Skip to content
Source
Sign inSign up
TanStack/schemas

Score stated upstreams that fail to resolve (an actionable origin-link gap) #755 (GitHub #754)

Opentombeckenham opened this issue 0 comments
tombeckenhamcommented

Problem

After #754 origin links are a count, not a score, because the old score charged providers for links the service can never write. The real, fixable gap is narrower: a provider STATES an upstream (models.upstream_provider is set) and reconcileSameAs finds no row for it. Example: Fireworks states moonshotai/Kimi-K3 and Moonshot lists kimi-k3, so nothing links because stated-tier matching is case-sensitive. Nothing shows these today: unresolved stated evidence is stored but never served.

Ask

  • Count, per provider, live rows with stated evidence whose namespace resolves to a catalogued provider and whose link is null. Evidence whose namespace no provider claims (OpenRouter meta-llama/...) is not a gap: no maker row exists.
  • recordCompleteness runs in the cron next to the database, so it can compute this with one grouped query and no row-shape change. The gap-report script reads /v1/models and cannot: either it reads the tally from /v1/status, or the evidence is served on the row. Keep one scorer.
  • Decide whether stated-tier matching should be case-insensitive, as the name tier already is. That alone would resolve the Kimi and GLM rows on Fireworks, Together and Hugging Face.

Acceptance

  • /v1/status shows, per provider, how many stated upstreams did not resolve.
  • The gap report shows the same number.

Sign in to join this conversation.