AGENCYSCRIPT
CoursesEnterpriseBlog
đź‘‘FoundersSign inJoin Waitlist
AGENCYSCRIPT

Governed Certification Framework

The operating system for AI-enabled agency building. Certify judgment under constraint. Standards over scale. Governance over shortcuts.

Stay informed

Governance updates, certification insights, and industry standards.

Products

  • Platform
  • Certification
  • Launch Program
  • Vault
  • The Book

Certification

  • Foundation (AS-F)
  • Operator (AS-O)
  • Architect (AS-A)
  • Principal (AS-P)

Resources

  • Blog
  • Verify Credential
  • Enterprise
  • Partners
  • Pricing

Company

  • About
  • Contact
  • Careers
  • Press
© 2026 Agency Script, Inc.·
Privacy PolicyTerms of ServiceCertification AgreementSecurity

Standards over scale. Judgment over volume. Governance over shortcuts.

On This Page

The Metrics That MatterPer-boundary accuracyConfusion in both directionsRegression on untouched categoriesInstrumenting the MeasurementBuild a held-out, hand-labeled setRun both prompts against the same setCapture production traffic tooReading the Signal HonestlySeparate signal from noiseWatch for the borrowed-from-Peter effectResist confirmation biasTracking the Metric Over TimeWatch for driftEstablish a baseline you can defendConnecting Metrics to Business ValueFrom accuracy to outcomeChoosing the outcome metricFrequently Asked QuestionsWhy is aggregate accuracy a bad metric for disambiguation?How big does my held-out set need to be?What does it mean if one direction improves and the other gets worse?How do I tell a real improvement from noise?Should I measure production or just the held-out set?Key Takeaways
Home/Blog/Reading Whether Your Disambiguation Pair Actually Worked
General

Reading Whether Your Disambiguation Pair Actually Worked

A

Agency Script Editorial

Editorial Team

·February 29, 2020·7 min read
contrastive prompting for disambiguationcontrastive prompting for disambiguation metricscontrastive prompting for disambiguation guideprompt engineering

A contrastive pair either fixed the boundary or it did not, and the only way to know is to measure. Yet most teams ship disambiguation changes on a vibe: they read a few outputs, decide it looks better, and move on. That is how a pair that improved one boundary while quietly breaking an adjacent one slips into production. The fix surfaces weeks later as a client complaint that nobody can trace back to a prompt edit.

This article defines the metrics that actually tell you whether a contrastive pair worked, explains how to instrument them, and walks through how to read the signal honestly. The hard part is rarely the math. It is resisting the conclusions you want to draw and holding yourself to a fixed comparison set that does not move under your feet.

A measurement discipline is also what separates a contrastive prompting practice from a guessing habit. Without numbers, every prompt edit is a story you tell yourself about why the output looks better. With a held-out set and per-boundary accuracy, an edit becomes a claim you can test and, crucially, one you can be wrong about. The willingness to be proven wrong by your own evaluation is the whole point; it is what stops a confidently confounded pair from shipping.

The unifying idea is that disambiguation is a boundary problem, so the metrics that matter are boundary metrics. Aggregate accuracy hides exactly the signal you need, because the confusable pair is a small slice of total traffic and its errors get averaged away.

Consider the arithmetic. If the confusable boundary accounts for ten percent of inputs and you cut its error rate from forty percent to ten percent, you have made a dramatic improvement on that slice — yet overall accuracy moves by only three points, well within the range a skeptic could dismiss as noise. Anyone reporting only the aggregate would conclude the fix barely worked. The same change, reported as the boundary going from sixty to ninety percent correct, reads as the decisive win it actually is. The choice of metric does not change what happened; it changes whether you can see it.

The Metrics That Matter

Pick measures that isolate the boundary, not the whole task.

Per-boundary accuracy

The single most important number is accuracy on the specific confusable pair you targeted, measured separately from everything else. A pair that lifts overall accuracy by one point may have lifted the boundary from sixty to ninety percent; the aggregate buries that.

Confusion in both directions

Measure how often A is misread as B and how often B is misread as A. A contrastive pair can fix one direction and worsen the other, the asymmetry that a single accuracy number never reveals.

Regression on untouched categories

Track accuracy on the categories you did not change. A disambiguation fix that breaks an adjacent boundary is a net loss, and this is the check that catches it, the discipline emphasized in Vetting a Contrastive Pair Before You Ship It.

Instrumenting the Measurement

You cannot measure a boundary without a fixed reference.

Build a held-out, hand-labeled set

Sample real inputs that include the confusable boundary, hand-label the correct output, and freeze the set before any change. Fifty to one hundred labeled examples per boundary is usually enough to separate signal from noise. The same set powers the before-and-after in A Legal-Intake Bot That Kept Confusing Two Request Types.

Run both prompts against the same set

The old and new prompts must see identical inputs. Any difference in the test set between runs contaminates the comparison. Reproducible runs are what make the delta trustworthy.

Capture production traffic too

A held-out set proves the pair works on known cases. Production tracing reveals the cases your set never contained, which is where the next pair comes from, the loop described in What Tooling Earns Its Place in a Disambiguation Workflow.

Reading the Signal Honestly

Numbers can mislead as easily as vibes if you let them.

Separate signal from noise

On a fifty-example boundary, a two-example swing is within noise. Do not celebrate a movement smaller than the set's natural variance. Larger held-out sets buy you the resolution to trust smaller deltas.

Watch for the borrowed-from-Peter effect

If boundary accuracy rose but an adjacent category fell by a similar amount, you did not fix the problem; you moved it. This is why measuring untouched categories is non-negotiable.

Resist confirmation bias

You added the pair hoping it would help, so you are primed to read ambiguous results as success. The fixed set and the per-direction confusion numbers exist precisely to overrule your hopes.

Tracking the Metric Over Time

A single before-and-after is a snapshot; boundaries drift, so the measurement has to recur.

Watch for drift

The mistake the model makes is a function of the input distribution and the model version, both of which change. A pair that held a boundary at ninety percent last quarter can quietly decay as traffic shifts toward inputs the pair never anticipated. Re-running the held-out set on a schedule, and refreshing the set itself as new failure modes appear, keeps the metric honest.

Establish a baseline you can defend

Record the boundary's accuracy before any contrastive pair existed, not just before your most recent edit. That original baseline is what lets you show cumulative progress and what protects you when someone asks whether the disambiguation work was worth it. Without a defensible baseline, every later number is unmoored.

Connecting Metrics to Business Value

Per-boundary accuracy is a proxy; the real prize is the downstream outcome.

From accuracy to outcome

In the intake example, the metric that mattered to the client was hours of manual re-sorting saved, not the accuracy percentage itself. Tie your boundary metric to the operational outcome it drives, and you can make the case in business terms, the bridge built in Putting Numbers Behind a Disambiguation Investment.

Choosing the outcome metric

The right downstream metric is the one the client already tracks and already feels. If they measure rework hours, report rework hours. If they measure escalation rate, report that. Inventing a new metric to showcase your improvement is weaker than moving a number the client was watching before you arrived, because the existing metric carries built-in credibility. The accuracy figure stays in your appendix as the mechanism; the client's own metric leads the story.

Frequently Asked Questions

Why is aggregate accuracy a bad metric for disambiguation?

Because the confusable boundary is usually a small slice of traffic. A large improvement on that slice barely moves the overall number, so aggregate accuracy hides exactly the signal you are trying to read. Measure the boundary in isolation.

How big does my held-out set need to be?

Fifty to one hundred labeled examples per boundary is a workable floor. Smaller sets cannot distinguish a real improvement from noise; larger sets give you resolution to trust smaller deltas. Quality of labeling matters more than raw size.

What does it mean if one direction improves and the other gets worse?

Your contrastive pair over-corrected. It pushed the model so hard toward one reading that it now misses the opposite case. Measure both directions of confusion and rebalance the pair until neither direction regresses.

How do I tell a real improvement from noise?

Compare the delta to the natural variance of your test set. On fifty examples, a one or two example swing is noise. Trust movements that clearly exceed what random relabeling of a few examples would produce.

Should I measure production or just the held-out set?

Both. The held-out set proves the fix on known cases and protects against regressions. Production tracing reveals the failures your set never contained, which is how you find the next boundary to fix.

Key Takeaways

  • Disambiguation is a boundary problem, so measure per-boundary accuracy in isolation, not aggregate task accuracy.
  • Track confusion in both directions; a pair can fix one direction and worsen the other.
  • Always measure the categories you did not touch to catch a fix that simply moved the error.
  • Instrument with a fixed, hand-labeled held-out set run identically against old and new prompts, plus production tracing.
  • Read the signal against the set's natural variance and tie the boundary metric to the operational outcome it drives.

Search Articles

Categories

OperationsSalesDeliveryGovernance

Popular Tags

prompt engineeringai fundamentalsai toolsthe difference between AIMLagency operationsagency growthenterprise sales

Share Article

A

Agency Script Editorial

Editorial Team

The Agency Script editorial team delivers operational insights on AI delivery, certification, and governance for modern agency operators.

Related Articles

General

Prompt Quality Decides Whether AI Earns Its Keep

Prompt quality is the single biggest variable in whether AI delivers real work or expensive noise. The model matters, the platform matters — but the prompt you write determines whether you get a first

A
Agency Script Editorial
June 1, 2026·10 min read
General

Counting the Real Cost of Every Token You Send

Tokens and context windows sit at the intersection of AI capability and operational cost—yet most business cases treat them as technical footnotes. That's a mistake that costs real money. Every time y

A
Agency Script Editorial
June 1, 2026·10 min read
General

Rolling Out AI Hallucinations Across a Team

Most teams discover AI hallucinations the hard way — a confident-sounding wrong answer makes it into a client deliverable, a legal brief, or a published report. The damage isn't just to the output; it

A
Agency Script Editorial
June 1, 2026·11 min read

Ready to certify your AI capability?

Join the professionals building governed, repeatable AI delivery systems.

Explore Certification