# Thom Pham

- **Event:** [Built with Opus 4.7: a Claude Code hackathon](https://cerebralvalley.ai/e/built-with-4-7-hackathon)
- **When:** Apr 21 at 12:00 PM – Apr 27 at 2:00 AM (EDT)
- **Where:** Online
- **Team:** [thomas Pham](https://cerebralvalley.ai/u/Guardiania)
- **GitHub:** https://github.com/GuardianAI1/validjson
- **Demo video:** https://www.youtube.com/watch?v=8wLu9GOpzlI
- **Gallery:** https://cerebralvalley.ai/e/built-with-4-7-hackathon/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/built-with-4-7-hackathon/hackathon/gallery/3

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.

---

Markdown version of https://cerebralvalley.ai/e/built-with-4-7-hackathon/hackathon/gallery/3. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
