Skip to content
Source
Sign inSign up
TanStack/schemas

Probes: record more facts, add a generic chat/completions probe and a weekly run #717

Opentombeckenham opened this issue 1 comment
tombeckenhamcommented

Problem

A probe record can state one fact: ProbeRecord.fact is the literal 'schemaEndpointId' (src/server/providers/probes/types.ts). Nothing runs probes on a schedule. Facts that one cheap live request can settle stay empty (gap report, 2026-11-21):

FactMissing chat rowsMostly
replayReasoningContent~1,200llmgateway 687, vercel 275
contextWindow~640llmgateway 539
maxOutput~440together 185, dashscope-cn 127
mandatoryUnknown flag~430llmgateway 251

Ask

  • Widen the record to replayReasoningContent, maxOutput, contextWindow and reasoning.mandatory.
  • Write one generic probe for the chat/completions wire, shared by every provider on it.
  • Store a value only when the response is explicit: an error that states the limit, or a 400 that names the field. A plain 200 states nothing.
  • Add a weekly CI job that runs pnpm run probe -- <provider> --write and opens a pull request. A person merges it.
  • Cap spend per run and never print a key.

Acceptance

  • A probed fact is served with derivation probe-verified and a date.
  • The weekly job opens a pull request when a record changes and none when nothing changed.
  1. tombeckenham linked this to #730

  2. #730 is merged and deployed, linked to this issue, but the forge left it open. Leaving it open on purpose until the weekly job has run once on the forge: it needs the GROQ_API_KEY CI secret in the development environment, and its push and pull-request steps have never run there. contextWindow is in the record type but no rule writes it yet (no live capture of a provider stating it).

  3. tombeckenham linked this to #742

Sign in to join this conversation.