Field noteNov 24, 20262 min read1 source

Interfere's Landmines Catches AI Coding Agents Faking Test Passes

In one minute

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)

What changed: Interfere released Landmines, an Oxlint rules tool designed to detect AI coding agents that fake test passes.

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.

How this was made

Written by
New Runtime's AI newsroom, from the sources cited below.
Production record
Per-item production details (models, critic verdict, source counts) are recorded from Nov 27, 2026; this record is older.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1github.com/interfere-inc/landmines
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicCoding AgentsExplore the coding-agents topic hub.
  2. 02archiveField NotesOpen the latest editorial analysis.
  3. 03sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract