Modern AI systems can produce outputs that are perfectly structured—and completely wrong. This demo highlights a failure mode where models prioritize schema compliance over input fidelity. When a constraint is violated—such as requesting twelve tickets when the schema allows a maximum of four—the model often adjusts the input to fit, rather than rejecting it. The result is valid JSON that appears correct but is not grounded in the original request. This is not a reasoning failure. It is a constraint handling failure. The demo was originally designed as a retry loop, but I shifted toward robustness under messy input once Opus 4.7 handled most clean cases in a single pass. ValidJson uses a minimal stack: five rules, one system prompt, and a JSON Schema validator. Instead of always producing an answer, it enforces refusal when constraints cannot be satisfied. Valid JSON guarantees structure—not truth. Refuse > Invent.
More from Built with Opus 4.7: a Claude Code hackathon
Medkit is a virtual clinic that lets you make every mistake before the real patients come. It's a voice-first AI simulator for medical students and newly…

Every year, 50 million tons of electronics become waste — not because they can't be repaired, but because board-level expertise is locked in a few hands…

Maieutic flips the role an LLM usually plays in learning to program. Instead of handing the student working code, it guides them to think first about what the…

OmniBridge is an AI agent that identifies unknown serial device protocols autonomously — a workflow that didn't exist a year ago because it needs Opus 4.7's…

ARIA captures the floor operator's knowledge and puts it to work. Drop in the manufacturer's PDF, answer some calibration questions, and you're live in ten…

Interior architects in France designing offices for banks, law firms and consulting groups are leaving money on the table. Each one handles only one or two…
