Skip to content
Source
Sign inSign up
TanStack/schemas
Open History to see the last commit

README.md

80 lines4.6 KB

1# Source-silent ledger
2​
3Facts a provider does not publish in any native source (listing, docs, or
4spec). `pnpm run gap:report` leaves these out of that provider's score and
5lists them under `silent`. We never fill them from another catalog.
6​
7One file per provider, `<provider>.md`, so two branches never edit the same
8file. One entry per list line: `- <provider>: <fact> — <why, with the issue>`.
9The fact is a gap-report key (`contextWindow`, `maxOutput`, `modalities`,
10`outputModalities`, `priced`, `cacheRead`, `capabilities`, `reasoning`,
11`efforts`, `requestMap`, `endpoint`, `replayReasoningContent`,
12`originLink`), or `serverTools`, which is evidence only: it is served as
13`factSources.serverTools` on a null row and never scored. A poll that read
14the model's own tool statement and found it says no already stores that
15evidence (#707), so a `serverTools` entry is only for a model with no such
16page. `activity` is scored but cannot be ledgered. Remove an entry when the
17provider starts publishing the fact.
18​
19Each activity has its own fact set (`ACTIVITY_FACTS` in
20`src/lib/completeness.ts`). Chat rows are scored on the chat keys above.
21Image, video and audio rows are scored on `priced` (any stored rate card
22that is not a models.dev price), `endpoint`, `modalities` (input) and
23`outputModalities`. A row with a null activity is scored on `activity`,
24which it always lacks: classify the row, do not ledger it. Rows of an
25activity with no fact set (embeddings, moderation, decision, world,
26search) are listed with `facts: null` and not scored. `originLink` is
27scored on every row: a row needs an upstream link when its raw id or an
28alias, also with dots read as hyphens, matches a row at another provider
29and no row links to it; a row with `sameAs` set has one. A provider-wide
30entry applies to every activity that scores that key.
31​
32For a fact missing only on particular models, use the exact native raw model id:
33`- provider/maker/model-id: fact — why, https://provider.example/model, checked YYYY-MM-DD`.
34The first slash separates the provider; the rest is the raw id, including any
35slashes, `@`, or colons. Backticks may surround the entire scope. No aliases,
36slug normalization, family prefixes, or wildcard matching are applied. A scoped
37entry never exempts sibling models. Do not use a provider-wide entry for a
38partially sourced fact.
39​
40`replayReasoningContent` is a separate gap-report key for the
41`requestMap.replayReasoningContent` leaf. It applies to reasoning rows whose
42endpoint id is a `chat/completions` route (`reasoning_content` is that wire).
43Anthropic messages, Gemini `generateContent`, OpenAI Responses, and Bedrock
44Converse are not scored for it. `requestMap` applies only when the endpoint
45id is `chat/completions`, `completions`, or `responses`. A provider with
46nothing scored (every row of an activity with no fact set, no row needing a
47link) scores n/a.
48​
49A sourced `true` or `false` fills `replayReasoningContent`; null remains
50unknown. A ledger entry adds read-time evidence at
51`factSources.requestMapFields.replayReasoningContent`, never a boolean or a
52request map. Populated facts and their provenance are preserved.
53​
54A "-" or blank cached-input cell is a stated "not offered". Store it as
55`factSources.cacheRead` with `path: 'not-offered'`. Never store a made-up
56price. The scorer counts that path as filled. A table with no cached-input
57column stays unknown.
58​
59A statement a provider makes about its whole API applies to every model on
60that route unless it names an exception. Behaviour that varies by model still
61needs a per-model source. Evidence records the API-wide URL.
62​
63A field missing from the provider's own assistant message schema, when that
64schema sets `additionalProperties: false`, is a sourced `false` for
65`replayReasoningContent`. A schema that does not close additional properties
66states nothing by omission.
67​
68A model's own exhaustive effort list, with no off value, and no other
69reasoning control, means `mandatory: true`. A list shared by many models
70states nothing about one model. A gateway can drop the off value, so a
71gateway list stays strict.
72​
73The report retains raw `have`/`need` totals and provider-wide `silent` keys.
74`modelSilent` counts applicable missing rows with exact-model exceptions; these
75counts are subtracted from the scoring denominator and displayed explicitly in
76the table. Entries for facts that have become populated do not remove those
77facts from the model-scoped score. Remove obsolete entries after sourcing them.
78Recorded URLs and checked dates are copied literally into API evidence; omitted
79metadata is not invented. Entries require verified native silence, not merely a
80failed fetch, a missing credential, or an upstream model maker's claim.