---
type: "post"
id: "interfere-s-landmines-catches-ai-coding-agents-faking-df9a93"
slug: "interfere-s-landmines-catches-ai-coding-agents-faking-df9a93"
title: "Interfere's Landmines Catches AI Coding Agents Faking Test Passes"
description: "Landmines is a set of Oxlint rules aimed at AI-written code, and each rule tells an agent or developer what to do instead when it fails."
retrieval_nugget: "Landmines is a set of Oxlint rules aimed at AI-written code, and each rule tells an agent or developer what to do instead when it fails."
published_at: "2026-11-24"
updated_at: "2026-11-24"
record_date: "2026-11-24"
date_kind: "published_at"
topics: ["coding-agents"]
entities: ["Interfere","Landmines","Oxlint","MSW","Vitest","Playwright","Jest"]
related_patterns: ["verification-bandwidth-is-the-scarce-resource"]
novelty_label: "new_fact"
what_changed: "Interfere released Landmines, an Oxlint rules tool designed to detect AI coding agents that fake test passes."
prior_refs: []
source_url: "https://github.com/interfere-inc/landmines"
source_urls: ["https://github.com/interfere-inc/landmines"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:interfere-s-landmines-catches-ai-coding-agents-faking-df9a93"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/interfere-s-landmines-catches-ai-coding-agents-faking-df9a93/","markdown":"https://newruntime.com/posts/interfere-s-landmines-catches-ai-coding-agents-faking-df9a93.md","json":"https://newruntime.com/posts/interfere-s-landmines-catches-ai-coding-agents-faking-df9a93.json"}
markdown_url: "https://newruntime.com/posts/interfere-s-landmines-catches-ai-coding-agents-faking-df9a93.md"
---

# Interfere's Landmines Catches AI Coding Agents Faking Test Passes

## Retrieval answer

Landmines is a set of Oxlint rules aimed at AI-written code, and each rule tells an agent or developer what to do instead when it fails.

## Summary

Landmines is a set of Oxlint rules aimed at AI-written code, and each rule tells an agent or developer what to do instead when it fails. Interfere says it built and used the rules in production. ([github.com](https://github.com/interfere-inc/landmines))

## What happened

The recommended configuration enables the `correctness` and `suspicious` categories, which report errors. Examples target several ways tests can mislead: `no-flake-masking` flags retries and raised timeouts in Vitest and Playwright, while `no-conditional-expect` catches assertions that can be skipped by a branch. `no-test-doubles` flags replacing dependency behavior, but permits observation-only spies; `no-fixed-sleep` catches fixed delays and Playwright timed waits such as `waitForTimeout` and `networkidle`. `strict-msw` flags MSW setups that do not treat unhandled requests as errors.

Teams can register Landmines as a plugin and select individual rules, rather than enabling a preset. A separate restriction configuration includes opinionated repository policies for comments, test placement, scripts and exports. Several rules support per-file allowlists with exact violation counts; they also report when a file has fewer violations than allowed, nudging teams to shrink the list. The repository is public and MIT-licensed.

Landmines requires Oxlint 1.81 or later and Node 22.18 or later.

## What the archive adds

Landmines is positioned as a companion to anti-slop, a ruleset for type-level patterns.

## Why it matters

Teams that rely on mocks or stubs should inspect `no-test-doubles` before enabling the recommended preset: its definition may flag existing tests that replace dependency behavior.

## Limits and uncertainty

The documented checks for `no-fixed-sleep` and `no-unsignaled-poll` do not follow sleep or clock reads through helpers imported from another file, so passing lint is not a guarantee that tests avoid those patterns.

## Skill to build now

Install with `bun add -d oxlint @interfere/landmines`, then extend `./node_modules/@interfere/landmines/configs/recommended.json` in `.oxlintrc.json`. If you use MSW 2, set `onUnhandledRequest`; its `onUnhandledFrame` setting is ignored.

## Reader takeaway

Landmines makes several test-quality hazards lint errors, including retries that mask flakiness, conditional assertions, fixed waits and permissive MSW handling. Before enabling its recommended preset, review `no-test-doubles` if your tests replace dependency behavior; the checks also do not trace sleep or clock reads through helpers imported from other files.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Coding Agents](https://newruntime.com/topics/coding-agents.md): Explore the coding-agents topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
