Corey Agnew
← All projects Try it now

Fuel Sample Photo Diagnosis

Photograph a settled fuel sample and get a per-jar read, checked against a locked rubric and scored by a rules engine.

Demo · access on request

Gives backa consistent first read, right at the tank

Replay demo

Try it on four real samples

Four real field samples, picked from my calibration set with anything identifying left out. Each photo went through the live tool once (the actual vision model and rules engine) and the result was saved, so this replays exactly what the tool said.

The itch

Whether a jar of diesel looks okay is a judgment call, and judgment varies from person to person and from day to day. The rules for when to worry (how much water is too much, when haze means trouble, when to call for a cleaning) mostly lived in people's heads. A lab answer is the real answer, but it takes days.

I wanted a consistent first read, right at the tank, that anyone could get from a phone photo.

What I built

You photograph a settled sample, and the tool gives a read for each jar in it:

  • Severity (normal, monitor, problematic or critical), with the reason in plain words.
  • What to do next, in order: check first, then fix, then prevent. Corrective work waits on a confirming check whenever the read isn't certain.
  • A visual version of the standard clear-and-bright check, clearly labelled as a visual analog, because a real determination needs a bench test.
  • An honest retake, when the photo can't be read, naming exactly what got in the way.

It's in private beta, so the real tool needs an access code. The demo above plays back saved readings, so you can see how it thinks without uploading anything.

How AI helped

The big design decision: AI describes, rules decide.

  • AI describes: a Claude vision model looks at the photo and fills in a locked, versioned observation form (clarity, water, layering, particulates and so on). It's not allowed to make the call. If its answer doesn't fit the form, it gets one retry, and then the sample goes to a person instead.
  • Rules decide: a deterministic rules engine turns those observations into the verdict. Every step it prints traces back to a named rule, so the same observations always get the same answer.
  • They move together: the form, the prompt and the rules are versioned as a set. A 22-case regression suite, mostly built from samples I ruled on by hand, has to pass in full before any change ships.

Claude also helped write and test every one of those pieces.

What it gave back

A consistent first read in seconds, and a written record of judgment that used to be tribal knowledge. I haven't measured the time saved yet, so I won't claim a number.

What I'd do differently

Early versions refused too many imperfect photos. Calibration fixed that: a slightly rough photo now still gets a verdict, flagged for a person to check, and a retake only asks for the specific detail that was hidden.

The open problem is borderline photos that can read differently on two tries. The next step is better worked examples in the prompt.

Contact me

If something here sparked an idea, or you're building something similar, I'd love to hear about it.

coreyagnew@protonmail.com