Checking AI-written code with evidence instead of trust: a zero exit code is not proof of tests

Reddit r/ArtificialInteligence Tools

Summary

polyglot-code-guard 0.5.0 introduces `polyguard verify`, a tool that confirms AI-written code with actual test-execution evidence rather than trusting a zero exit code, supporting eleven languages and recursive monorepo discovery.

Repo: https://github.com/Furox-Art/polyglot-code-guard - 0.5.0, the command is polyguard verify. The failure mode it targets is specific: an agent runs something, the exit code is 0, and that gets reported as "tests pass" - even when no test ran at all. Polyguard discovers the project type, finds the suite, runs the plan, and only returns PASS if it can find positive test-execution evidence in the runner's own output. pytest's passed line, cargo test result blocks, Go test events in the JSON stream, JUnit/Surefire/TRX counters, Swift Testing or XCTest summaries, per-test CTest Passed records. Missing tests, a missing toolchain, bad config, a timeout, or no positive evidence each return FAIL. A project's own npm test script is never accepted as evidence. Plans exist for eleven language identifiers - Python, Rust, Go, JavaScript/TypeScript, Java, C#, PHP, Ruby, Swift, C, C++ - and monorepos are discovered recursively, with Maven, Gradle, Cargo, npm workspaces or .sln aggregators delegated to the native workspace command once so nothing runs twice. On timeout it kills the process tree so test-runner children do not outlive the check. Install: python -m pip install --upgrade polyglot-code-guard One honest limit: PASS means the built-in plan succeeded and real test-pass evidence was recognised, not that the code is correct or covered. And because it executes your build scripts and package managers, an untrusted repository belongs in a disposable container - polyguard provides no OS isolation of its own.
Original Article

Similar Articles

How well do agents use test/verification techniques?

Lobsters Hottest

The article evaluates how well AI coding agents implement test and verification techniques when given specific instructions, comparing various methods in Rust to improve software correctness.

A Rust-to-Lean verification pipeline with AI provers: An experience report

Lobsters Hottest

This paper presents an experience report on a verification pipeline that uses AI provers (Aristotle and Aleph) alongside symbolic extraction tools and formal cryptographic libraries to produce machine-checked correctness proofs for Rust cryptographic code in Lean 4, with case studies from the Ethereum Foundation's zkEVM project.

Created deterministic prose claim verifier for coding agents on macOS

Reddit r/AI_Agents

A deterministic macOS menu bar app that watches coding agent transcripts (Cursor, Claude Code, etc.), extracts claims using regex patterns, and cross-references them against evidence to flag inconsistencies—all running locally without LLM or API calls.

How do you know when an AI coding agent is actually done?

Reddit r/AI_Agents

The author built OpenPitStop, an open-source tool that independently checks and verifies the work of AI coding agents, demonstrated on a broken application, and invites discussion on how to trust AI changes.