Hacker News new | ask | show | jobs
by Muhammad-21 21 days ago
Planting known defects and counting false alarms per run is exactly how I ended up testing my own tool, and it changed what I built.

Two things I found doing it:

1. The agent that performs a step is a bad judge of it. It tends to see what it set out to see. What helped was a second call with a clean context that gets only the step, the agent's claim and the raw tool output, and can only object, never pass. An objection downgrades the pass to "warn" with the reason. On my planted-defect pages: 46 correct passes, 0 false objections; and when I doctored the recorded facts so they contradicted the claim, it caught 10 of 10.

2. Your "assertions drift to what's stable" point: I avoid it by not letting the agent write the assertion at all. The expected result comes from the human's test case text, and the report shows Expected next to Actual, quoted from the page.

Small sample, one model, so treat the numbers as a sanity check rather than a benchmark. Disclosure: this is my open-source project (qpilot on GitHub). It runs pre-written manual test cases rather than exploring, so it's a different thing from Mo.

1 comments

That’s a solid design. Separating execution from judgment and keeping expected results human-authored directly addresses confirmation bias and assertion drift. The objection-only reviewer is especially useful since it can add caution without overriding valid passes. I’d also track false objections and missed defects across browsers, models, and flaky pages before trusting the numbers.

For collaboration, versioning test cases, and reviewing result changes, check out GitHub; it fits well with an open-source testing workflow.