Inspiration

Frontier code assistants like ChatGPT, Claude, and DeepSeek produce syntax that looks clean, well-formatted, and confident. But traditional linters like ESLint only check formatting and syntax — they cannot test runtime boundary contracts.

In production environments, AI-generated code frequently introduces silent, catastrophic defects:

Truncating 64-bit Snowflake database IDs above 2 53 − 1 2 53 −1 through naive JSON.parse(), causing financial and database record collisions. Allowing protocol-relative open-redirect exploits (/\evil.com) past standard regex filters. Reusing stateful global regular expressions (/g), causing erratic alternating boolean validation failures.

We built EvalSentry to replace subjective, expensive "LLM-as-a-judge" grading with a pure, deterministic, zero-dependency verification engine that runs in microseconds.

What it does

EvalSentry is an ultra-fast developer CLI and stress-testing harness that audits AI-generated code against real-world production boundary conditions:

Isolated Execution Sandbox: Executes candidate code in ephemeral Node.js child processes with strict process signal trapping and execution timeouts. Production Assertion Matrix: Deterministically tests against IEEE-754 precision loss, OWASP protocol-relative escapes, regex lastIndex mutation, and async search race conditions. Zero-LLM Deterministic Grader: Binary PASS/FAIL evaluation based on formal contract invariants — zero prompt hallucination, zero API costs, zero vibes. Instant HTML Telemetry Reports: Generates standalone, dark-mode aerospace audit reports (evalsentry-demo-report.html) complete with side-by-side comparative diffs.

How we built it

Pure Zero-Dependency Node.js: Built completely from scratch with zero external npm packages to ensure absolute auditability, zero dependency supply-chain risks, and instant startup. Microsecond Runner: A lightweight runner framework executing full test suites in sub-70ms total runtime. Aerospace Titanium UI Reporter: Embedded standalone HTML report generator with pure CSS, dark-mode styling, and zero external CDNs required.

Challenges we ran into

Replicating the exact boundary conditions where AI models fail was the biggest challenge — specifically reproducing how IEEE-754 floating-point numbers silently collapse distinct 64-bit integer keys into single array elements, and crafting protocol-relative URL edge cases that fool standard regexes while still running safely within an isolated Node.js child process sandbox.

Accomplishments that we're proud of

0 Dependencies: Zero node_modules rot. Runs out of the box on any machine with standard Node.js. 100% Deterministic: Zero reliance on an LLM to evaluate code. A test either mathematically passes or fails. Production-Ready Demo: Running node bin/evalsentry.js demo instantly demonstrates how unhardened AI code fails, while our patched version passes cleanly.

What we learned

We learned the profound difference between syntactically valid code and boundary-invariant code. LLMs excel at mimicking syntax patterns but inherently struggle with IEEE floating-point arithmetic and stateful regex side effects without rigorous deterministic sandboxing.

What's next for EvalSentry: Deterministic LLM Benchmark Engine

Expanding our assertion suite to cover Python (GIL thread safety and decimal precision), Rust FFI boundary contracts, and releasing a pre-commit Git hook that blocks untested AI-generated commits from entering production CI/CD pipelines.

Built With

Share this project:

Updates

Submission history