Skip to content

fix(claims): bind parity wording to benchmark data - #421

Merged
abrichr merged 2 commits into
mainfrom
guard/parity-derived-from-artifact
Aug 28, 2026
Merged

fix(claims): bind parity wording to benchmark data#421
abrichr merged 2 commits into
mainfrom
guard/parity-derived-from-artifact

Conversation

@abrichr

@abrichr abrichr commented Aug 28, 2026

Copy link
Copy Markdown
Member

What changed

public/llms-full.txt now states the two observed outcomes. MockMed tied on success. In OpenEMR, the agent arm recorded 10/10 and compiled replay recorded 19/20. The copy says these unequal, small samples don't establish superiority on accuracy.

The test reads data/benchmark.json, requires each arm's measured ratio or percentage, and rejects an unqualified parity sentence when any comparison doesn't tie.

Why

The old bullet said both benchmark comparisons showed parity. It contradicted the OpenEMR table and artifact after the saved-row oracle changed the compiled result to 19/20.

The old assertion required only the words parity on success. That assertion could keep a wrong claim green. The new assertion derives its expectation from the artifact.

Review

Check that the copy matches data/benchmark.json and that a future artifact change makes the test reject stale parity wording.

Verification

  • node --test tests/aiDiscoverability.test.js (22 passed)
  • npm run check:figures
  • npm run check:universals
  • npm test (288 passed)
  • npm run build (50 pages generated)

… copy

tests/aiDiscoverability.test.js asserted that public/llms-full.txt contains
the words 'parity on success'. That pinned a sentence whose truth depends on
data nothing was comparing it to. When the saved-row oracle re-adjudicated
OpenEMR compiled run 20 and the arm became 19/20 against the agent's 10/10,
the test went on requiring the older, friendlier claim. A test that enforces
copy can enforce wrong copy.

The replacement reads data/benchmark.json. Every arm's counts must appear on
the page as a ratio or as its percentage. Where the two arms do not tie, any
sentence claiming the comparisons show parity must name where parity fails.

This is RED on purpose. The limitations bullet still reads 'The benchmark
comparisons show parity on success', which the same file contradicts a few
hundred lines earlier. Correcting that sentence is a prose change owned by
the correction pass, not by this one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Deploy Preview for cosmic-klepon-3c693c canceled.

Name Link
🔨 Latest commit 05b9267
🔍 Latest deploy log https://app.netlify.com/projects/cosmic-klepon-3c693c/deploys/6a91e8fc58169f00089de2d1

@abrichr
abrichr marked this pull request as ready for review August 28, 2026 20:01
@abrichr abrichr changed the title test(claims): derive the parity assertion from the artifact, not from copy fix(claims): bind parity wording to benchmark data Aug 28, 2026
@abrichr
abrichr merged commit f8f7412 into main Aug 28, 2026
5 checks passed
@abrichr
abrichr deleted the guard/parity-derived-from-artifact branch August 28, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant