Agent-written code, checked by Pluvy.

type.broad · flow.swallow · type.suppressionResolved · exit 0

An agent silences a failing check with @ts-ignore, any, and a swallowed catch. Restoring the contract clears all 3 findings.

Before · excerpt
// @ts-ignore -- unblock buildexport function parseOrder(raw: any): any {  try {    const [amount, currency] = raw.split(" ");    return { total: Number(amount), currency };  } catch (error) {    return null;  }}
After · excerpt
export interface Order {  readonly total: number;  readonly currency: string;}export function parseOrder(raw: string): Order {  const [amount, currency] = raw.trim().split(/\s+/);  if (!amount || !currency) throw new SyntaxError("Invalid order");  return { total: Number(amount), currency };}

Agents can make a task look done by loosening types, suppressing diagnostics, or deleting tests. Pluvy checks every change in Python, Go, Java, JavaScript, and TypeScript against your committed policy—blocking shortcuts before commit or merge.

Install with uv
uv tool install pluvy

Shortcuts that pass CI
without doing the work.

  1. 01

    Ineffective tests

    Assertions that restate a literal, tests with nothing to assert, deleted test files, and quietly dropped assertions.

  2. 02

    Contracts erased in silence

    Broad markers like Any, unchecked casts, swallowed exceptions, and missing data hidden behind literal defaults.

  3. 03

    Architecture that drifts

    Forbidden imports, misplaced modules, and unowned files—checked against owners and boundaries declared in .pluvy/pluvy.json and reviewed like code.

Put a gate after
every agent task.