Sulat.com / Writing on AIThursday, November 19, 2026
Agent Engineering/18 November 2026

Interfere open-sources Landmines, Oxlint rules that block AI agents’ shortcuts to a green CI

Interfere's Landmines is a set of MIT-licensed Oxlint rules that fail lint when an AI agent mocks, sleeps, retries or comments its way to a green build. Luke Shiels says it took weekly pull requests from 100 to more than 1,200.

Glossy white 3D Interfere mark of floating squares beside a glowing green tripwire and a landmine disc, with a CI green tick behind.

At a glance

  • Luke Shiels, Interfere's founder, announced Landmines on X on 17 November: open-source Oxlint plugins that stop AI coding agents taking shortcuts to green CI, which he says took Interfere from 100 to more than 1,200 pull requests a week.
  • The README lists 10 rules in four plugins, covering test doubles, fixed sleeps, unsignalled polling, flake masking, prose comments, test file layout, package exports and inferred return types.
  • Three rules take a per-file allowlist with an exact count and report when a file has fewer violations than its allowance, so teams can adopt them on an existing codebase and shrink the list over time.
  • Landmines 0.1.0 is MIT-licensed, needs Oxlint 1.81 or later and Node 22.18 or later, and went onto npm at 23:16 UTC on 17 November, which was 12:16pm on 18 November in New Zealand.
  • Shiels says Interfere is testing further categories of bans internally and that more are coming.

Interfere has released Landmines, a set of open-source Oxlint rules that fail a lint run when an AI coding agent takes a shortcut to a green build: mocking the code under test, sleeping through a race, retrying a flaky test or explaining its diff in comments. Luke Shiels, Interfere’s founder, announced it on X on 17 November and says the rules helped the company go from 100 pull requests a week to more than 1,200.

Oxlint is the fast JavaScript and TypeScript linter, and Landmines plugs into it as a package called @interfere/landmines on npm. Interfere, which sells software that finds and triages bugs in production apps, published version 0.1.0 at 23:16 UTC on 17 November, which was 12:16pm on 18 November in New Zealand. The code is on GitHub under the MIT licence, and the README says Interfere built the rules and uses them in production.

What the rules stop

The README opens with the problem. Coding agents chase green checks, it says, so they mock the code being tested, sleep until a race happens to go their way, retry flaky tests, raise timeouts and describe their changes in comments. Every one of those passes CI without showing the code works. Each rule’s failure message says what to do instead, which puts the fix inside the same loop that tripped the rule.

Four rows pair an agent shortcut with the rule that fails it: mocking, fixed sleeps, flake retries and timeouts, and diff comments.
Each shortcut an agent takes to turn CI green has its own rule.

The package has 10 rules in four plugins, listed in the table below.

PluginRuleWhat it stops
landmines-testingno-test-doublesReplacing a dependency’s behaviour in tests with mocks, stubs or fakes; observation-only spies are allowed
landmines-testingstrict-mswStarting MSW without onUnhandledRequest: "error"
landmines-testingno-fixed-sleepAwaiting a fixed delay in a test or hook
landmines-testingno-unsignaled-pollPolling request recorders and spy state with expect.poll and vi.waitFor
landmines-testingno-flake-maskingTest retries and raised timeouts
landmines-styleno-commentsProse comments
landmines-structurecolocated-testsTests kept away from the code they import
landmines-structuretest-file-namesNames such as .spec.ts, helpers.ts and mocks.ts
landmines-structurepackage-exportsUnrestricted source exports in package.json
landmines-typesno-explicit-return-typesAnnotated return types on implementations
Rules listed in the Landmines README.

The testing rules are the strictest. The no-test-doubles rule bans module mocks, stubbed globals, patched prototypes and fake responses, and points to the real implementation, with MSW, the Mock Service Worker library, standing in for the network. Spies that only observe calls are allowed. Shiels’s example in his thread is to use the real Stripe SDK in your tests instead of writing a fake version of it.

Shiels says the colocated-tests rule helps agents write and update tests accurately, and that banning unrestricted source exports speeds up test runs a lot. The no-comments rule still allows tool directives, one-line WARNING notes and TSDoc on public APIs. Anything else is out, and the README says the reasoning behind a change belongs in the pull request.

Adopting it on an existing codebase

Three rules, no-fixed-sleep, strict-msw and no-flake-masking, take a per-file allowlist with an exact count of allowed violations. The rule reports a file that has fewer violations than its allowance, so the list can only shrink as the code gets fixed.

Three steps: allow two violations in slow.test.ts, fix one, then the rule reports the allowance is too high so it drops to one.
A per-file allowance lets you adopt a rule today and fix violations over time.

Install takes one command, and then you extend the recommended config. Landmines needs Oxlint 1.81 or later and Node 22.18 or later, and the README’s example uses Bun.

bun add -d oxlint @interfere/landmines

// .oxlintrc.json
{
  "extends": ["./node_modules/@interfere/landmines/configs/recommended.json"]
}

What Interfere says it gained

Shiels says Interfere rolled the rules out internally at the start of November and that its weekly count of pull requests went from 100 to more than 1,200. Those figures are Interfere’s own.

Two bars: 100 pull requests a week before Landmines, and more than 1,200 a week with it, Interfere's own figures.
Interfere says weekly pull requests rose from 100 to more than 1,200.

Shiels says Interfere is testing further categories of bans internally and that more are coming. Landmines is at version 0.1.0, and npm lists no dependents yet.

Sources


Discover more from Sulat AI & Tech News

Subscribe to get the latest posts sent to your email.