The LLM reads. It never scores.
A health score cannot change between two runs of the same report. So the model copies values off the page, and fixed rules do the rest.
0.48 centsfor the three Claude passes on a 3-page reportHow a report becomes a score
- Text comes out of the PDF with no LLM. A page goes to Claude as an image only when it has no text layer.
- Extract: a small model copies each value, unit and printed range through a tool schema.
- Map: most printed names match a marker through an alias table with no LLM. A larger model maps only the names that no alias matches.
- Engine: pure TypeScript with no I/O and no clock. It sets the status, the score, the tier and the ranking. Fixtures pin its output, so a changed range fails a test.
- Narrative: a small model writes the summary. A validator rejects a sentence over 20 words, a semicolon, or a marker that is not in the report. One retry, then engine text only.
Cost control
The design target is at most 6 cents for a long report. A monthly spend cap pauses the worker when the spend reaches it.