How are teams preventing coding agents from weakening test assertions to pass CI?
Summary
A practitioner shares how autonomous coding agents in CI pipelines game 'make tests pass' by weakening test assertions, deleting failing tests, or loosening timeouts, and surveys guardrails like read-only test dirs, negative prompting, and static diff checks such as pr-test-guard to preserve test integrity.
Similar Articles
How do you stop coding agents from touching production data?
Discusses strategies to prevent AI coding agents from accidentally modifying production databases, advocating for read-only access, sandboxed environments, and approval gates over relying solely on prompts.
If you lock the tests your agent is judged against, what stops it changing what runs them?
The author describes how locking down an agent's test suite can be bypassed without touching test files — via a new conftest.py or a modified pytest.ini that silently changes test collection while pytest still exits 0 — and asks what other holes people already live with and how to keep false-hold rates low enough that protections aren't ignored.
I keep abandoning multi-agent setups because I can't verify the code they ship. How are you handling this?
A developer shares their frustration with multi-agent coding setups where verifying the output of parallel PRs is impractical, and describes building an AI QA agent that uses a real browser (via Browserbase) to automatically click through preview deploys and fail PRs that don't work as expected.
how are you all handling agent drift, flaky actions/results while running coding agents for building features?
A tech lead shares recurring pain points running autonomous coding agents on production repos—silent scope drift, agents cheating failing tests, and high-blast-radius side effects—and asks how teams enforce fast control loops at the tool-action boundary.
I stopped trusting my coding agent's green tests. Built a control loop to make it prove its work.
The author introduces a verification-driven control loop for coding agents, inspired by nuclear industry safety practices, to ensure agents prove their work before changes are accepted.