This is the second sample engagement report built on my own tooling. The first, on Image Payload Injection, was offense: finding what survives a sanitization pipeline. This one is defense: a safety-detection pipeline in Claude Whisperer that looked operational and matched nothing, ever, for any input, and the chain of three bugs that caused it.
Scope and Objective
Target: SafeguardsClient, the component responsible for flagging policy violations, child-safety concerns, and content-moderation issues in message text before it reaches a model.
Objective: verify that the detection pipeline actually detects what its own pattern files define, rather than trusting that a component with no errors and no crashes is a component that works.
Finding: A Silent Total Failure
Severity: Critical.
The pipeline loaded three pattern files (policy, child-safety, content-moderation) and ran text through a matching step that referenced a "type" field on each pattern. No pattern in any of the three files had a "type" field; the real field was "severity". Every detection call filtered on a key that didn't exist, so every match silently failed, every time, for every input. Nothing crashed, nothing logged an error, nothing surfaced the failure in normal use: the component looked alive. It just didn't do anything.
Two more bugs compounded it. The pattern-loading step merged all three files with dict.update(), which meant two of the three files' patterns were silently dropped whenever keys collided, and the third file's structure got corrupted into something the loader broke on first real use. And the confidence-gating step defaulted every pattern to a flat 0.5 score checked against a 0.7 threshold, with no path for a real confidence value to ever reach it, so even a pattern that somehow matched couldn't clear the bar to fire.
Three independent bugs, each one sufficient on its own to make the whole system non-functional, stacked on top of each other. That's the signature of a component nobody had actually exercised end-to-end: each bug was invisible from inside the one next to it.