Fix/benchmark - #63
Merged
Merged
Conversation
Its SDK lived in a /tmp venv the OS cleans, leaving the committed benchmark unscoreable on a clean machine.
Their published benchmarks/system-prompt.txt no longer matches @openuidev/react-ui@0.13.5, so we were benchmarking a prompt no integrator receives.
memorte03
approved these changes
Aug 10, 2026
barlipdev
approved these changes
Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Corrects the OpenUI arm of the generative-UI format benchmark. Their published
benchmarks/system-prompt.txtis byte-identical to their repository but no longer matches thelibrary they ship:
openuiLibrary.prompt()from@openuidev/react-ui@0.13.5emits 17,431 charsagainst the artifact's 13,080, drops
## Examples, adds## Action - Button Behaviorand## Final Verification, and introduces theModalandActioncomponents. We were benchmarkinga prompt no integrator receives, so the scored arm now uses the shipped library prompt with the
schema regenerated from the same version.
All 270 generations were re-run rather than adjusted after the fact. Also pins the A2UI Python
setup, which lived in a
/tmpvenv the OS cleans, leaving the committed benchmark unscoreable ona clean machine.
Type of Change
Packages Affected
None. Only
benchmarks/genui-formats(private, never published) andpnpm-lock.yaml.Checklist
biome formatandlintpass on all 19 files).pnpm verifygained probe-adapterhandling so the superseded arm skips the fixture and cross-validation checks that cannot
apply to it.
pnpm verifygreen;pnpm scorereproduces every number offline.tsconfig.json, sopnpm typecheckdoes notcover it.
tsxcompiles it on every run andpnpm verifyexercises all six adapters.How to Test
cd benchmarks/genui-formats && ./a2ui-python/setup.sh— installs the A2UI SDK from its pinnedcommit. Required before scoring, and the thing this PR makes reproducible.
pnpm verify— all six adapters, five gates. PrintsAll adapter checks passed.pnpm score && pnpm report— re-scores the committed 1,647 generations offline and regeneratesresults/REPORT.md. Free, no API key.OPENROUTER_API_KEY:pnpm bench --formats openui-v2 --models google/gemma-4-26b-a4b-it --scenarios contact-form/minimal --k 1(~$0.01).Results
"Every time" rate, five repeats per scenario:
Effect of the correction on OpenUI:
Reviewers should know this correction did not favour us. It gained OpenUI 2 scenarios on the
flagship and cost them 1 on each cheaper model, averaging to no change across the ladder, and
OpenUI now ties MDMA at 94.4% on Opus 5 where we previously showed them at 83.3%. The published
artifact was not systematically unfair to them; it scored better on two rungs of three.
The finding is written up as section 8 of
results/REPORT.md, including the prompt diff and thebefore/after comparison.