Foundry's validation is designed to be highly deterministic and cheap, falling back to AI only when necessary.
Fast, local, non-AI checks.
If deterministic checks yield MEDIUM or UNCERTAIN confidence, a cached helper AI session is invoked. It generates shell commands (grep, cat) to gather actual evidence from the disk.
grep
cat
Deep structural analysis checking for:
To improve performance, validation results are cached in Redis.