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
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
| Variant | What the model gets | Where the arithmetic happens |
|---|---|---|
| One big prompt | Every table as CSV in the prompt, no tools | In the model |
| SQL tools | The schema and a read-only SQL tool | In SQL the model writes |
| Skills + validators | Skill files and nine domain tools; every number must come from a tool, and missing data forces an abstention | In code |
The eval set
- 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
| Check | Result (harness-validated, not a live model score) |
|---|---|
| Reference solutions through each variant's own interface | 33 of 33, plus 8 of 8 brief fields |
| Injected mistakes the scorer marked wrong, across 12 types | 121 of 121 |
| Clean answers the scorer marked right | 384 of 384 |
| Answers the validators sent back before scoring | 15, with 5 forced abstentions |
(harness-validated, not a live model score) harness-validated: produced by the offline harness, not by a live model run.
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
| This work | Highbeam or Luma workflow it shows | The role's work it rehearses |
|---|---|---|
| One brief built three ways and graded on exact answers | The Analyst agent, which answers finance questions on demand and writes live cash reports | Prompting the platform, evaluating outputs, tuning behavior |
| Skills with validators: every number must come from a tool | Luma's approach of running code against the data instead of letting a model read it directly | Building the skills and workflows the platform uses |
| Planted gaps the workflow must refuse | Outputs that are accurate, explainable and verifiable | Knowing when a brand's setup is incomplete |
| Cost per question for each design | Choosing 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.