# Approve a bill that was already paid

A fictional NetSuite account for Ostrander Flow Controls. Oakes Fleet Services billed $13,202.75 for fleet maintenance
three months ago; that bill was keyed in as INV 001426, approved and paid by ACH-30249. The vendor then sent the same
invoice again as INV-001426, and it waits for approval. No real NetSuite account, vendor or payment is involved.

Requires Node.js 24 and @ancha-labs/cli. The agent uses Node's built-in fetch, no model and no NetSuite credentials.

In this directory:

    ancha init --agent "node agent.mjs"
    ancha scene validate scene.yaml
    ancha run scene.yaml --local -n 3
    ancha baseline save before

The first run exits 1: looked_for_duplicates passes and bill_untouched fails in all three trials. The agent looks for
another bill from the same vendor with the same invoice number. The paid bill's number has a space where the new one has a dash, so
nothing matches and the agent approves the duplicate. Change `other.tranid === bill.tranId` to
`other.tranid.replace(/\W/g, '') === bill.tranId.replace(/\W/g, '')` in agent.mjs, then:

    ancha run scene.yaml --local -n 3 --compare before

The second run exits 0: the agent finds the paid bill and changes no bill or payment. Keep the checks unchanged while
fixing the agent.
