Recent public reports

Redacted audit reports that included this probe.

Overview & Risk Context

Structured output auditing submits a constrained response_format JSON Schema enforcing required fields, enums, and additionalProperties: false, then validates every byte returned.

What this check measures

Checks strict `json_schema` adherence including nested required keys, enum constraints, and absence of unrequested extra fields.

Why this risk matters

Gateways translating OpenAI payloads to older endpoints frequently discard `response_format` or drop `strict: true`, breaking production data extractors.

When to run this check

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.

Detection Methodology, Evidence & Limitations

Issues strict Schema enforcement requests inside @lmspeed/audit with adversarial prompt temptation toward extra keys/prose and strict schema parsing.
  1. 1. Probe

    Send a request enforcing `response_format.type = "json_schema"` with `strict: true`, enums, and `additionalProperties: false`.

  2. 2. Inspect

    Parse raw completion text with zero cleanup heuristics (no silent Markdown fence stripping) and validate against the schema.

  3. 3. Conclude

    Fail cleanly on wrapper prose, invalid JSON, missing required fields, or unauthorized extra keys.

How to read the verdict

Clean raw JSON strictly obeying schema types and `additionalProperties: false` passes; prose wrapping or schema violations trigger warn/fail.

Evidence basis & thresholds

Raw JSON parser result and strict schema validator compliance across required keys, types, enums, and additionalProperties.

Scope limits & abstention conditions

Validates endpoint schema compliance on representative schemas; deeply recursive custom schemas may still hit provider-specific complexity caps.

Verification Sources & Baselines

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.

  • lmspeed/audit (v0.3.3)Open-source LMSpeed probe engine, catalog registry, and calibrated fingerprint protocols.

Frequently Asked Questions

Why fail responses wrapped in ```json Markdown code fences?

True strict `json_schema` decoding operates at grammar/token level and returns pure JSON—fences usually signal that the relay stripped `response_format` and relied on plain prompting.

Why test additionalProperties: false specifically?

Prompted JSON often drifts by adding helpful commentary fields; strict schema enforcement guarantees closed field sets.

Does every OpenAI-compatible model support json_schema strict mode?

No, older models support only `json_object` or unstructured text—this check makes that incompatibility visible before deployment.

Which related check tests structured function arguments?

Run Tool Permissions (`tool-calling`) to check function-call schema adherence alongside `response_format`.

All audit checks by category

Explore every single-check audit tool grouped by risk domain, with Fingerprint Detection pinned first for model-authenticity verification.