<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-detector-reported-zero-because-it-only-had-one-item--oa1e9hduv" -->

---
title: The Detector Reported Zero Because It Only Had One Item.
description: A detailed postmortem walks through a bug in an open-source 'Auditor' tool that detects contradictory instructions in agent instruction files. Two clearly...
canonical: https://daily.dev/posts/the-detector-reported-zero-because-it-only-had-one-item--oa1e9hduv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The Detector Reported Zero Because It Only Had One Item. | daily.dev
og:description: A detailed postmortem walks through a bug in an open-source 'Auditor' tool that detects contradictory instructions in agent instruction files. Two clearly...
og:url: https://daily.dev/posts/the-detector-reported-zero-because-it-only-had-one-item--oa1e9hduv
og:image: https://api.daily.dev/og/posts/oA1e9HDuV.png
og:image:alt: The Detector Reported Zero Because It Only Had One Item.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The Detector Reported Zero Because It Only Had One Item.

**[DEV](https://daily.dev/sources/devto)** · 11 min read · 1 upvotes · 1 comments

## Summary

A detailed postmortem walks through a bug in an open-source 'Auditor' tool that detects contradictory instructions in agent instruction files. Two clearly conflicting instructions ('never deploy without approval' vs 'auto-deploy when tests pass') were silently merged into a single item during text extraction because they sat on adjacent lines with no blank line separator, so the pairwise comparison step never received a pair to compare and the tool reported a false 'low_observed_risk' verdict. The piece traces the root cause to a three-month-old join/length-floor bug in memory_extractor.py, documents a real Cloud Run deployment mistake (a service reported success while the actual behind-the-scenes agent service hadn't redeployed for 14 minutes), scrutinizes its own regression tests (only 2 of 4 'proved' the defect), and adds an 'uncovered_domain' warning distinguishing 'no conflict found' from 'never checked.' It candidly admits the fix is incomplete: sub-12-character fragments still vanish, hard-wrapped procedures over-split, and a classifier still misses imperative instructions scored as 'context_only.' An active comment thread extends the analysis, identifying additional ways instructions can vanish from the tool's output (e.g., becoming a section heading) and proposing a general 'population precondition' contract for verdicts.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/kenielzep97/the-detector-reported-zero-because-it-only-had-one-item-ni0>

## Questions this post answers

### Why would a conflict detector report zero conflicts even when two instructions clearly contradict each other?

It can happen when the extraction step merges the two contradicting lines into a single item before the comparison logic ever runs, so the pairwise comparison never receives a pair to evaluate. In one documented case, joining unbulleted adjacent lines with no blank line between them collapsed two conflicting deployment rules into one item, producing a 'low_observed_risk' result instead of flagging a high-severity authority collision.

_Anyone hardening an internal detector against silent extraction bugs can track write-ups like this on daily.dev._

### How do I tell whether a regression test failure actually proves a bug was fixed?

Check whether the failure reason matches the specific defect, not just whether the test turns red. In one case, four regression tests failed against old code, but only two failed because of the actual extraction bug being fixed; one failed only because of an unrelated hardcoded constant, and one failed simply because new code the test expected didn't exist yet on the old branch, which is a missing-feature failure, not proof of the original defect.

_Developers auditing their own test suites for false confidence can find similar teardown stories on daily.dev._

### What causes an AI classifier to treat two functionally identical instructions differently in a conflict-detection system?

A keyword or substring match, rather than genuine semantic scoring, can decide the classification label, with a confidence number stapled on afterward that looks like a measurement but isn't. In one case, 'Publish immediately without checking' was labeled context_only with 0.64 confidence and got no conflict check, while 'Do not check before publishing' was labeled governs with 0.78 confidence and triggered a warning, purely because of the phrase 'do not.'

_Teams building classifier-gated checks can follow real-world failure cases like this on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@leonidbugaev** · 0 upvotes

> low_observed_risk was true of the counter. The pairwise loop never got two items. I'd still worry about M002 as context_only. The skip-the-check half still produces nothing.

## Similar posts on daily.dev

- [Google Newsletter Issue Agent-CLI Eval](https://daily.dev/posts/google-newsletter-issue-agent-cli-eval-zbtoft45i) · Daily Dose of Data Science \| Avi Chawla \| Substack · 3 upvotes · 1 comments
- [Nobody’s agent fleet fails the way the vendors say it will](https://daily.dev/posts/nobody-s-agent-fleet-fails-the-way-the-vendors-say-it-will-tvfxicgff) · InfoWorld · 0 upvotes · 0 comments
- [I Audited My AI Agent's Guardrails. Most of Them Weren't Running.](https://daily.dev/posts/i-audited-my-ai-agent-s-guardrails-most-of-them-weren-t-running--iejklp8mp) · The Infinity · 2 upvotes · 0 comments
- [Bug Detection Blind Spots in AI Coding Harnesses \(GStack and Beyond\)](https://daily.dev/posts/bug-detection-blind-spots-in-ai-coding-harnesses-gstack-and-beyond--5k8lonjtf) · Towards Data Science · 0 upvotes · 0 comments

---

Tags: [#ai](https://daily.dev/tags/ai), [#python](https://daily.dev/tags/python), [#open-source](https://daily.dev/tags/open-source), [#testing](https://daily.dev/tags/testing), [#ai-agents](https://daily.dev/tags/ai-agents)

[View this post on daily.dev](https://daily.dev/posts/the-detector-reported-zero-because-it-only-had-one-item--oa1e9hduv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The Detector Reported Zero Because It Only Had One Item.","url":"https://daily.dev/posts/the-detector-reported-zero-because-it-only-had-one-item--oa1e9hduv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-detector-reported-zero-because-it-only-had-one-item--oa1e9hduv"},"datePublished":"2026-09-05T01:06:48.368Z","dateModified":"2026-09-14T09:23:36.807Z","description":"A detailed postmortem walks through a bug in an open-source 'Auditor' tool that detects contradictory instructions in agent instruction files. Two clearly...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/75f3eceb3f632acb6e856c27b595b524?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/75f3eceb3f632acb6e856c27b595b524?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"DEV","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DEV","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto","url":"https://daily.dev/sources/devto"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/the-detector-reported-zero-because-it-only-had-one-item--oa1e9hduv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"ai,python,open-source,testing,ai-agents","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DEV","item":"https://daily.dev/sources/devto"},{"@type":"ListItem","position":3,"name":"The Detector Reported Zero Because It Only Had One Item."}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/the-detector-reported-zero-because-it-only-had-one-item--oa1e9hduv","comment":[{"@type":"Comment","text":"low_observed_risk was true of the counter. The pairwise loop never got two items. I’d still worry about M002 as context_only. The skip-the-check half still produces nothing.","datePublished":"2026-09-08T15:03:48.488Z","url":"https://daily.dev/posts/oA1e9HDuV#c-qkxNae03i","author":{"@type":"Person","name":"Leonid Bugaev","url":"https://daily.dev/leonidbugaev","image":"https://lh3.googleusercontent.com/a/ACg8ocLhMgurwTmJElWaH9A8Ju8cHvZxgMCDt009jEYkmFCyUGAoaGSw=s96-c"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/the-detector-reported-zero-because-it-only-had-one-item--oa1e9hduv#faq","mainEntity":[{"@type":"Question","name":"Why would a conflict detector report zero conflicts even when two instructions clearly contradict each other?","acceptedAnswer":{"@type":"Answer","text":"It can happen when the extraction step merges the two contradicting lines into a single item before the comparison logic ever runs, so the pairwise comparison never receives a pair to evaluate. In one documented case, joining unbulleted adjacent lines with no blank line between them collapsed two conflicting deployment rules into one item, producing a 'low_observed_risk' result instead of flagging a high-severity authority collision. Anyone hardening an internal detector against silent extraction bugs can track write-ups like this on daily.dev."}},{"@type":"Question","name":"How do I tell whether a regression test failure actually proves a bug was fixed?","acceptedAnswer":{"@type":"Answer","text":"Check whether the failure reason matches the specific defect, not just whether the test turns red. In one case, four regression tests failed against old code, but only two failed because of the actual extraction bug being fixed; one failed only because of an unrelated hardcoded constant, and one failed simply because new code the test expected didn't exist yet on the old branch, which is a missing-feature failure, not proof of the original defect. Developers auditing their own test suites for false confidence can find similar teardown stories on daily.dev."}},{"@type":"Question","name":"What causes an AI classifier to treat two functionally identical instructions differently in a conflict-detection system?","acceptedAnswer":{"@type":"Answer","text":"A keyword or substring match, rather than genuine semantic scoring, can decide the classification label, with a confidence number stapled on afterward that looks like a measurement but isn't. In one case, 'Publish immediately without checking' was labeled context_only with 0.64 confidence and got no conflict check, while 'Do not check before publishing' was labeled governs with 0.78 confidence and triggered a warning, purely because of the phrase 'do not.' Teams building classifier-gated checks can follow real-world failure cases like this on daily.dev."}}]}
```

