How do I know my LLM app actually got better?

Eight acceptable answers and two permission leaks. An 80% pass rate would hide a release blocker.

This comic follows an LLM app change through deterministic checks, held-out examples and a calibrated judge. Critical failures get their own release gate.

It also traces why valid JSON, a real citation or a confident model judge can't establish that an action is correct and authorized.

Download this comic as a PDF

Comic page 1 of 6: How do I know my LLM app actually got better?
Read page 1 as text

How do I know my LLM app actually got better?

A convincing answer can still fail the test that matters.

WHAT WE WILL FIGURE OUT

01

Build evidence before changing the prompt

02

Use the right kind of check

03

Keep security outside a promise

OUR EXAMPLE

A changed support assistant passes eight of ten cases but leaks data in two.

Follow the steps. Ask the obvious questions. Check the result.

Part 17 of 18 · Challenge: page 5 · Suggested answers: page 6

Comic page 2 of 6: Build evidence before changing the prompt
Read page 2 as text

Build evidence before changing the prompt

1

THE NEW PROMPT

baseline

candidate

baseline

candidate

This answer sounds much better.

One attractive example does not establish improvement. Keep a representative evaluation set and compare versions.

Baseline version versus candidate version

2

TEST WHAT CODE CAN VERIFY

FOLLOW THE CHANGE

expected 42

assert total == 42

expected 42

→

assert total == 42

Exact values, calculations, schemas and authorization decisions often have deterministic checks. Use ordinary tests where appropriate.

Expected total 42 → assert total == 42

3

TEST OPEN-ENDED QUALITY

FOLLOW THE CHANGE

rubric

trusted review

rubric

→

trusted review

For qualities without a single exact answer, define a rubric. Human review or a calibrated model judge can help.

Correctness, evidence support and usefulness

4

SEPARATE DEVELOPMENT AND CHECKS

practice set

held-out set

practice set

held-out set

Keep held-out cases separate from the examples used to tune the system. Otherwise the apparent gain can be overfitting.

Practice examples are not the final exam

Comic page 3 of 6: Use the right kind of check
Read page 3 as text

Use the right kind of check

5

A DANGEROUS AVERAGE

ONE AVERAGE CAN HIDE A CRITICAL FAILURE

8 pass + 2 access leaks: BLOCK RELEASE

8 pass

2 access leaks

Eight out of ten sounds acceptable?

If the two failures expose confidential data, an 80% pass rate hides a release blocker. Track critical failures separately.

8 acceptable answers + 2 access leaks = do not ship

6

CALIBRATE A JUDGE

judge says pass

reference says fail

judge says pass

reference says fail

Compare a model judge with trusted human labels. Look at false passes and false failures, not just overall agreement.

A judge can confidently approve the wrong answer

7

CHECK THE WHOLE PIPELINE

prompt

index

tools

model

prompt

index

tools

model

Retrieval, prompts, tools, model versions and serving changes can all affect behavior. Record the configuration for each run.

A prompt score alone does not test resource permissions

8

ROLL OUT GRADUALLY

FOLLOW THE CHANGE

staged rollout

monitor

rollback

staged rollout

→

monitor

→

rollback

Use staged deployment, real failure cases and rollback criteria. Production evidence should expand the evaluation set.

Offline checks + controlled rollout + monitoring

Comic page 4 of 6: Keep security outside a promise
Read page 4 as text

Keep security outside a promise

9

AN UNTRUSTED DOCUMENT

retrieved text

untrusted data

retrieved text

untrusted data

The page says ignore the rules.

Retrieved pages and tool outputs can contain instructions designed to redirect an agent. Treat them as untrusted data.

A document can describe an action without authorizing it

10

BOUND THE DAMAGE

least privilege

resource checks

least privilege

resource checks

Use least privilege, resource-level authorization, isolated tools and explicit approvals for consequential actions.

A filter is not a complete security boundary

11

VALID FORMAT, WRONG CONTENT

JSON shape

facts

authority

JSON shape

facts

authority

JSON mode, schema-constrained output and tool calling provide different guarantees. None proves factual correctness or authority.

Valid shape does not mean valid decision

12

MY NEW MENTAL MODEL

task score

critical failures

cost

task score

critical failures

cost

Better is a measured claim.

Report the task score, critical failures, uncertainty and operating cost. Preserve a known-good rollback path.

Quality and safety require independent evidence

Comic page 5 of 6: Your turn. Can you explain what happens?
Read page 5 as text

Your turn. Can you explain what happens?

Use the same example. Change one detail. What follows?

KEEP THIS EXAMPLE IN MIND

A changed support assistant passes eight of ten cases but leaks data in two.

Try first. Suggested answers are on the next page.

1

Why should the toy 80% result block release?

What makes you say that?

2

What is a false pass from an LLM judge?

What makes you say that?

3

Can a retrieved instruction authorize a tool to disclose private data?

What makes you say that?

Write your answers in the comments.

Comic page 6 of 6: Suggested answers
Read page 6 as text

Suggested answers

How do I know my LLM app actually got better?

01

Why should the toy 80% result block release?

Its two failures leak protected information, which a single average hides.

02

What is a false pass from an LLM judge?

The judge accepts an output that violates the trusted reference or rubric.

03

Can a retrieved instruction authorize a tool to disclose private data?

No. Authorization must come from trusted identity, policy and the permitted user request.

Try the challenge on page 5. Suggested answers follow on page 6.