HaiAI123

Curated Global AI Tools Directory

Industry update
Flat

AI-written tests pass but catch nothing; author adds negative controls

11/28/2026 — 11/28, 15:17·1 sources (all)·1 reports (all)

Key takeaways

  • The author found that a security check written by AI had passed since day one, staying green even after the feature it guarded was deleted;
  • in another case 13 tests passed while the tested line was commented out. His fix is a negative control per test: run something that should f…

Background & analysis

On November 28, 2026, a DEV Community post described one developer's experience with tests written by AI. The author said an AI had once written a safety check for him that had shown green since the day it was created, and would have stayed green even if the feature it was meant to guard had been deleted. He only noticed the problem after asking what would turn the check red; the answer was nothing. In another case, 13 tests all came back green even though the line of code they were supposed to cover had been commented out. The tests passed because they never actually ran the relevant code.

The author's suggested fix is to add a negative control to every test: run the same check against something that should fail, and if the check still passes, it cannot tell good from bad, so a green result means little. The post describes checks that have never said no as polite decoration and says agents produce many of them. The account remains a personal experience and recommendation, with no further developments reported in the material.

AI-generated from 1 reports · updated 23 hours ago

updream
24-hour heatHeat index 52 · peak 100 · 22h ago
24 hours agonow

Reports on this story headlines open the original

Yesterday
  1. An AI-written safety check stayed green from the day it was created and would have stayed green even if the guarded feature were deleted, and in another case 13 tests passed while the line they covered was commented out. The fix is a negative control: run the same check against something that is supposed to fail, and if it still passes, the check cannot tell good from bad.

    DEV Community · AIAI score 59

Other stories people are talking about

How is heat calculated?About the method

Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.

This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.

Surge
Discussion rising fast
New
First report within 6 hours
Rising
Still gathering discussion

Back to AI industry updates →