Infer origin links from a similar name, resolve variants and serve the root of the chain #719
Send to my agentProblem#
reconcileSameAs (src/server/ingest/model-identity.ts) links a row only when its provider states an upstream. Three gaps remain after the stated links (#718):
- Hosts with bare ids state nothing: neon 0/16 Claude rows, opencode 0/15.
- Variant ids do not resolve:
anthropic/claude-fable-5.2:batch,-fast,:free. - A link is one hop. llmgateway's
azure-anthropic/…rows point at Azure and never reach Anthropic.
Decision (2026-11-21): a link may be inferred from a similar name. This replaces the rule "never inferred from a similar name alone".
Ask#
- Add a last tier for rows with no stated upstream. Normalise the id (lowercase, drop a maker prefix, dots as hyphens, drop Bedrock's
-v1:0) and link when every match leads to one root row. When the roots differ, write no link. - Label an inferred link
derivation: "name-inferred"infactSources.sameAs. A stated link always wins. - Strip stated variant suffixes before matching and record the variant in the evidence.
- Serve the root of the chain beside the direct link. This changes the row shape: bump
MODEL_ROW_SHAPE, regenerate the client, add a changeset. - Update the sameAs paragraph in
CLAUDE.mdand the README.
A link is never a copied fact. That rule does not change.
Blocked by#
#709. It links alias rows inside one provider and may use sameAs. Settle there that sameAs means the original provider's row and aliases holds -latest and snapshot links.
Out of scope#
A model whose maker has no API row (Llama, Qwen, gpt-oss). That is the maker fact in #710.
Acceptance#
- Neon's
claude-fable-5links to Anthropic's row withname-inferredevidence. - A row three hops from the maker serves the maker's row as its root.
- Llama on Groq, Together and Fireworks stays unlinked.
tombeckenham assignedtombeckenham
tombeckenham linked this to #734
Correction to the
firstPartyscope above, from the review of #734.The rule "
truealso when another host's link resolves to this row as the root, whatever the declaration" is wrong. Gateways link to host rows (LLM Gateway routes end at Together, Novita, DashScope, Cerebras, Fireworks, Bedrock rows), so 161 live rows at hosts are link targets and would all servefirstParty: true.Corrected rule: a link ending at a row is evidence for
trueonly when the row's provider is a declared maker. A link target at an undeclared host servesnullunless its own link ormakersaysfalse.Same reason, for the name tier: an inferred link is written only when its root is a declared maker's row that itself states no upstream. A host's row is not an origin.
tombeckenham linked this to #736
tombeckenham closed this
Sign in to join this conversation.
Added scope: mark a row whose provider is the maker of the model#
Add
firstPartyto the model row, besidesameAs, the chain root andmaker(#710). It answers one question: is this provider the maker of this model?Provider declaration#
Add one flag to
ProviderConfig, mirrored to the providers table likemodelNamespaces: the provider makes its own models. Set it on makers (anthropic, openai, grok, gemini, mistral, byteplus, elevenlabs, deepseek, cohere, and the like). Leave it unset on pure hosts and gateways (amazon-bedrock, openrouter, vercel, groq, together, replicate, novita, huggingface, fireworks, azure). This is a fact about the provider, stated once, not per-model data.Value#
false: the row has asameAslink to another provider's row, or itsmakernames a company that is not this provider. Evidence always wins over the declaration.true: the provider is declared a maker and nothing says otherwise. On a maker that also hosts other companies' models (mistral, byteplus), 'nothing says otherwise' needs the maker source to have been READ for that row:makernull with anunstatedsource. A row the maker source does not list, or whose source was unavailable, isnull, nottrue.truealso when another host's link resolves to this row as the root, whatever the declaration.null: an undeclared provider with no link and no stated maker, or a mixed host's row that no source covers.Rules#
makerand the namespace table. Not stored per row.factSources.firstPartynames what decided it:provider-declared,linked-fromwith the count, ormakerwith its source.MODEL_ROW_SHAPEbump, client regeneration and changeset as the chain root.Acceptance#
firstParty: true, including a model no other host lists yet. Neon's and Bedrock's Claude rows servefalse.gemma-4-31b-iton Gemini servestrue.zai-glm-5-3on Mistral servesfalse(Mistral names Z.ai);mistral-large-latestservestrue.gpt-oss-120b-250805on BytePlus servesnull(the maker source does not list it).falsewhere Groq names Meta, andnullwhere it names no maker.