Avinash RayuduEmail me

Case study, synthetic brands

Testing whether a finance workflow can be trusted

workflow-reliability-lab harness-validated

One finance workflow, Fernwood's Monday cash brief, built three ways. A harness runs each version N times on the same 33 graded questions plus the brief, and reports accuracy, consistency, numeric error, abstention and cost.

Where the numbers come from

Every number on this page comes from the offline harness. It is deterministic and is not a language model.

The harness proves three things: every question can be answered from the data, the answer key is right, and the scorer catches mistakes.

The model runner is guarded too. It stops at a spending cap, refuses to overwrite a result already on record, and stamps each result with the git commit and hashes of the data, questions and answer key it was scored against.

The problem

A finance workflow is only useful if it gives the same right number every time, and says it can't tell when a brand's data is incomplete. Every brand's data is incomplete in its own way.

The three variants

The three variants
VariantWhat the model getsWhere the arithmetic happens
One big promptEvery table as CSV in the prompt, no toolsIn the model
SQL toolsThe schema and a read-only SQL toolIn SQL the model writes
Skills + validatorsSkill files and nine domain tools; every number must come from a tool, and missing data forces an abstentionIn code

The eval set

The three gaps are planted on purpose, so the test can tell a workflow that refuses from one that guesses.
  • 33 questions with exact answers: 18 on Fernwood, 6 on other brands, 3 across the portfolio, 4 that require refusing to answer and 2 controls.
  • Three planted gaps: a week that never arrived, AP bills not connected, SKU refunds not connected. The two control questions ask about the same brands but can be answered, so refusing everything scores badly.
  • The brief is scored field by field, and every dollar figure in its prose must trace to the data.
  • Money counts as right within the larger of $1 and 0.05%. Consistency is scored separately from accuracy.

What the harness shows

Harness results
CheckResult (harness-validated, not a live model score)
Reference solutions through each variant's own interface33 of 33, plus 8 of 8 brief fields
Injected mistakes the scorer marked wrong, across 12 types121 of 121
Clean answers the scorer marked right384 of 384
Answers the validators sent back before scoring15, with 5 forced abstentions

(harness-validated, not a live model score) harness-validated: produced by the offline harness, not by a live model run.

One big prompt37,400 tokensSQL tools2,100 tokensSkills + validators6,800 tokens
Input tokens per question, measured on the real prompts at about 4 characters per token. At Sonnet 5.5 prices that is about $0.075, $0.006 and $0.015 per question. A real model takes more turns than the reference solutions, so it would cost more.

What I expect each design to get wrong

Written down before scoring any model, so a model run can prove me wrong.

  • The big prompt makes small arithmetic errors on multi-row sums, and may answer instead of abstaining.
  • SQL tools are either right or confidently wrong on a filter.
  • Skills with validators are the most consistent. Their risk is refusing too often.

Where this fits at Highbeam

My reading of Highbeam's public pages (Luma, Highbeam Intelligence, Building Luma) and the AI Implementation Associate posting. Not affiliated with Highbeam; no Highbeam data is used.
Where this fits at Highbeam
This workHighbeam or Luma workflow it showsThe role's work it rehearses
One brief built three ways and graded on exact answersThe Analyst agent, which answers finance questions on demand and writes live cash reportsPrompting the platform, evaluating outputs, tuning behavior
Skills with validators: every number must come from a toolLuma's approach of running code against the data instead of letting a model read it directlyBuilding the skills and workflows the platform uses
Planted gaps the workflow must refuseOutputs that are accurate, explainable and verifiableKnowing when a brand's setup is incomplete
Cost per question for each designChoosing a design on evidence

Finance concepts

The questions are about cash: the low point, the draw, variances, bills and discounts, sales tax. One planted gap is "AP bills not connected", where the right answer is to abstain. The finance concepts behind these projects.

How I built this

I built this with Claude Code, Anthropic's coding agent. I chose the problem and set the rules the work had to follow: compute every expected answer instead of typing it, plant gaps the workflow must refuse, write the predictions down before scoring any model, label mock results as mock everywhere, and never publish a model score that a committed run did not produce.

Claude Code wrote most of the code, tests and first drafts of the docs under that direction and ran the evals. I read the results, decided what to fix and what to leave visible, and ran reviews from an implementation team's point of view that drove the last rounds of changes. The commit history and the CHANGELOG in the repository show the order things happened in.

Limits

  • The mock is not a model. Its accuracy shows the questions can be answered and the plumbing works, nothing more.
  • I wrote the questions and the gaps, so they test the failure modes I thought of.
  • One snapshot, one brief, 10 synthetic brands. Temperature defaults to 1.0.

Back to all projects