What this check measures
Checks strict `json_schema` adherence including nested required keys, enum constraints, and absence of unrequested extra fields.
Checks strict `json_schema` adherence including nested required keys, enum constraints, and absence of unrequested extra fields.
Gateways translating OpenAI payloads to older endpoints frequently discard `response_format` or drop `strict: true`, breaking production data extractors.
Run before deploying structured classification, extraction pipelines, or deterministic UI-generation backends.
A model instructed nicely in prose may output valid JSON 90% of the time—making silent stripping of `response_format: { type: "json_schema", strict: true }` hard to notice until edge keys or Markdown code fences crash production parsers.
Send a request enforcing `response_format.type = "json_schema"` with `strict: true`, enums, and `additionalProperties: false`.
Parse raw completion text with zero cleanup heuristics (no silent Markdown fence stripping) and validate against the schema.
Fail cleanly on wrapper prose, invalid JSON, missing required fields, or unauthorized extra keys.
Clean raw JSON strictly obeying schema types and `additionalProperties: false` passes; prose wrapping or schema violations trigger warn/fail.
Raw JSON parser result and strict schema validator compliance across required keys, types, enums, and additionalProperties.
Validates endpoint schema compliance on representative schemas; deeply recursive custom schemas may still hit provider-specific complexity caps.
Implemented in @lmspeed/audit v0.3.3 (ruleset independent-2026-11-22.2); supplementary capability/injection design cross-checked against Veridrop, LLMprobe-engine, and meow-llm-detector specs.