Repository navigation
Take origin links out of the completeness score and serve a link count - #753
Merged
Merged
Conversation
completeness.originLink asked a looser matcher of its own whether a row needs a link, so regional twins, hosts with no maker row and stated upstreams that resolve to nothing counted as gaps the service can never close. It now reads the link reconcileSameAs wrote (served sameAs): need and have are the same rows. originIdKeys and originIndex are gone. A worker test runs one table of cases (regional twins, a three-hop chain, a host-only model, a maker's own row, a stated upstream that resolves to nothing, a variant suffix, a case-only difference) through reconcileSameAs and the scorer and asserts they agree row by row. The completeness cache_meta key moves to v4.
🦋 Changeset detectedLatest commit: c4f7764 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 27 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
tombeckenham
added a commit
that referenced
this pull request
Nov 21, 2026
…753) * fireworks: state the upstream model from each model's huggingFaceUrl
need always equalled have, so originLink only lifted the scores of providers with links. Completeness drops the term, and /v1/status, the gap report and the home page serve originLinks, the number of live models with sameAs served. The stored-record validator rejects the old originLink shape, and the ledger refuses an originLink entry.
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.
This takes origin links out of the completeness score.
GET /v1/status, the gap report and the home page now show a single count,originLinks: the number of live models whosesameAsis served.Why
The old
originLinkfact used its own name matcher to decide which rows needed a link. It counted rows that no link rule can ever link: regional twins, hosts with no maker row, and stated upstreams that resolve to nothing. Those rows lowered a provider's score for a link that cannot exist.The rules themselves (
reconcileSameAs: the stated tiers, then the name tierinferLinksoveroriginNameKeyandisOwnRow) cannot be re-run from served rows. Three of their inputs are not served:upstream_*, never served);provider_model_namespaces);providers.makes_own_models).So the only exact answer to "does this row need a link" is whether the service wrote one. That is always
have = need, which gave providers with links an unearned lift. On the snapshot below: lovable +3.8 points, azure +3.2, replicate +1.9.Origin links are therefore information, not a scored fact. Scoring stated upstreams that fail to resolve, which would be the actionable version, is a separate follow-up issue.
Changes
src/lib/completeness.ts:originLinkis out ofFACT_KEYS,FACTS,scoreRowandscoredFacts, andscoredRowsstarts at 0;ProviderReport.originLinkscounts rows with a servedsameAs;originIdKeys,originIndexand thealiasesfield onModelRoware deleted;originLinkentry.GET /v1/statusandGET /v1/providers:completeness.originLink({ have, need }) becomescompleteness.originLinks(integer). The stored-record validator rejects the old shape, and thecache_metakey isstatus:completeness:v4.originLinksand shows the count, not a ratio./modelsno longer filtersoriginLinkout of row scores, because no row carries it.openapi.tsis updated;openapi.json, the generated client andSKILL.mdare regenerated;llms.txt, CLAUDE.md,docs/source-silent/README.mdanddocs/api-changes.md(Breaking) are updated.@modelschemas/clientminor.Pinning test
src/server/ingest/origin-link-score.worker.test.tsruns one table of cases throughreconcileSameAsand serves the rows vialistModelsCatalog. For each row it asserts that the stored link and the servedsameAsmatch the expected answer. For each provider it asserts thatoriginLinksequals the stored link count, and that removing everysameAsleaves the score unchanged.The cases:
Before / after
Both runs score the same snapshot: one request to
https://modelschemas.openstory.workers.dev/v1/models?pricing=1&limit=20000, 7,892 rows, fed togap-report --basefrom a local copy. "Before" ismain's scorer and "after" is this branch.