Cynthia Wandia
All writing

Evaluation. 5 minute read, 26 Nov 2026.

Build the test set to punish the shortcut.

Ten scenarios from the Second Voice harness, built so that no single signal separates a scam from an honest payment, and a test that fails if one ever does.

A lookup table can pass a test set whenever one feature happens to line up with the label. The system under test learns to read that feature, and the score climbs without touching the hard cases.

I am building Second Voice, an assistant for a banking app. It opens a short conversation before the money moves, and a rules engine decides what happens next. Version 0.1 has no published results, and its test harness runs a set of ten scenarios.

The shortcut is one signal

In a safe-account scam the caller stays on the line and tells the victim what to say to their bank. The obvious test set pairs scams where a call is in progress with ordinary payments where the phone is silent. Any design that checks for a call then scores perfectly. So does a single if statement.

The set is built so that no single observable separates scams from legitimate payments. A test enforces it with ten probes across ten scenarios, each a simulated payer in a plain JSON file.

  const probes: Array<[string, (s: Scenario) => boolean]> = [
    ["call in progress", (s) => s.context.callInProgress],
    ["call longer than 20 minutes", (s) => (s.context.callStartedMinutesAgo ?? 0) > 20],
    ["remote access", (s) => s.context.remoteAccessDetected],
    ["new payee", (s) => s.context.payeeIsNew],
    ["name check failed", (s) => s.context.nameCheck === "no_match"],
    ["name check not clean", (s) => s.context.nameCheck !== "match"],
    ["moves most of the balance", (s) => s.context.shareOfBalance >= 0.7],
    ["far above history", (s) => s.context.amountVsUsualMax >= 3],
    ["older payer", (s) => ["65-79", "80+"].includes(s.context.payerAgeBand)],
    ["prior intervention", (s) => s.context.priorInterventions > 0],
  ];

A probe separates the two groups if every scam has it and no legitimate payment does, or the reverse. If one ever does, npm test fails and the message ends "Add a counterexample scenario." The comment above the test gives the reason: "If any one observable cleanly separated the two classes, the harness would be measuring a lookup table and every score would be a lie."

Two more tests guard the edges. One requires a scam with no call in progress. The other requires a legitimate payment that reaches elevated caution on signals alone. Without it the false-positive half of the set would test nothing.

Each hard case breaks a signal

Derek is a plasterer whose caller told him to hang up before paying and ring back when it was done. There is no call for the app to see.

Tunde has been told the new account is in his own name, and it is. The criminals opened it with stolen documents. The name check passes cleanly, and his cover story, that he is moving money between his own accounts, is true in every word.

Sam is buying a used car on a driveway, with the seller on speakerphone reading out the account details. The account is in the seller's wife's name. A call in progress, a new payee, a failed name check, an amount far above his history: each of those probes fires, and every one is innocent.

The opponent gets a turn

Coaching continues after the app starts asking questions, so the harness keeps the scammer in the conversation. The victim is a model told how firmly they believe the caller, from 0 to 1, and told to follow the caller's instructions in their own words. The scammer is a second role. While the call is up, it gets a turn before every reply the victim gives. It sees the app's question, the cover story and how firmly the victim still believes, and it says what to answer.

The victim's instructions describe the person and say nothing about what should change their mind. An earlier version told the victim which kind of message moves them. That is the same as telling the test which answer to give, so it came out.

The honest payers have a real reason and finite patience. If the app keeps pressing after a clear and true answer, they may give up, and the harness counts an abandoned payment.

Arithmetic for outcomes, a judge for the rest

Each scenario runs in two arms. The control arm shows one generic warning and applies the signal-only rules. The Second Voice arm adds the conversation. That is a simpler baseline than the tailored warnings many banks already run, and a tailored-warning arm is the first thing to add. The commercial outcomes are arithmetic on the case file, starting with the decision the rule table reached. A scam payment is reported as not released when the decision was a delay, a hold for review or a cancellation by the payer, and the table then splits out the holds and the delays, because a delayed payment still leaves unless someone acts. A legitimate payment counts as released if it went through and the payer did not walk away. No model is asked, because no model should grade the thing it just produced.

A model judges two things only: dignity from 1 to 5, and whether the spell broke, meaning the payer stopped believing the caller. The judge is told that a payer who cancels to get rid of the app will try again somewhere else within the hour.

Offline mode refuses to score

Offline mode swaps the model for fixed rules and skips the judge, so the plumbing, the rule table and the audit trail run without a key. It writes the transcripts and declines to print a table, because any table would measure the stub file. A number that looks like a result ends up in a slide. The cheapest way to prevent that is never to print it.

What ten scenarios cannot tell you

Ten scenarios is a small set, six scams and four legitimate look-alikes, so the report prints every percentage beside the fraction it came from. The separation test checks one signal at a time, so two signals together could still give the answer away.

One model plays the assistant, the payers, the scammer and the judge, so the judged measures come from the model that wrote the app's side of the conversation. A model playing a victim gives way to a good argument more easily than a person does, so the harness compares designs. Predicting results in a bank needs a pilot. The payer's decision to stop is declared by the simulator, so intent detection goes unmeasured.

Every cell of the results table in the README reads "pending", on purpose, until there is a published run with every transcript behind it. The set is thinnest on the false-positive side. The most useful thing anyone can add is a legitimate payment that looks like fraud.