Skip to content

feat(cli): add grounding benchmark dataset and evaluation workflow - #3403

Open
LawisChen wants to merge 3 commits into
mainfrom
yixiongchen/feat/grounding-benchmark
Open

LawisChen wants to merge 3 commits into
mainfrom
yixiongchen/feat/grounding-benchmark

Conversation

@LawisChen

@LawisChen LawisChen commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Add a curated grounding dataset and a complete evaluation workflow under midscene model benchmark-grounding.

  • Publish @midscene/benchmark-grounding with 200 versioned Web/Mobile testcases, bilingual instructions, source references and SHA-256 checksums. Download and cache the exact CLI-version dataset on demand, or use an explicit local directory.
  • Add prepare, viewer, run, report and merge to the main CLI. Evaluate models with configurable concurrency, retries and timeouts while retaining independent testcase/model metadata snapshots and per-attempt token usage.
  • Generate portable single-file HTML reports with model comparisons and per-testcase inspection; merge reports with integrity checks and explicit replacement order. Include price and performance references for HY4 Flash, Gemini 4 Hydrogen and Qwen4 Max.
  • Preserve explicit not-found grounding outcomes and correct cancellation error attribution.

Validation

  • NX_DAEMON=false NX_ISOLATE_PLUGINS=false pnpm exec nx build @midscene/cli --output-style=static
  • NX_DAEMON=false NX_ISOLATE_PLUGINS=false pnpm exec nx test @midscene/cli --output-style=static — 435 tests passed.
  • NX_DAEMON=false NX_ISOLATE_PLUGINS=false pnpm exec nx test @midscene/core --output-style=static -- tests/unit-test/grounding-locate-not-found.test.ts tests/unit-test/task-runner-cancellation.test.ts tests/unit-test/task-runner/index.test.ts — 50 tests passed.
  • NX_DAEMON=false NX_ISOLATE_PLUGINS=false pnpm exec nx test @midscene/report --output-style=static -- src/components/test-runner/capture-time.test.tsx — 5 passed; 1 baseline UTC-label test failed on Node 24.20.0 / ICU 78.3 (UTC+0 received, UTC expected). Both Report files match the base branch exactly.
  • NX_DAEMON=false NX_ISOLATE_PLUGINS=false pnpm --package=node@24.13.0 dlx node node_modules/nx/dist/bin/nx.js test @midscene/report --output-style=static -- src/components/test-runner/capture-time.test.tsx — all 6 tests passed using the current CI Node version (24.13.0 / ICU 77.1).
  • pnpm run lint
  • Packaged CJS/ESM smoke checks for command routing, preparation, viewer and report generation; all 200 testcase integrity checks passed.
  • Real-model smoke checks on MOBILE-v1-001: Gemini 4 Hydrogen and Qwen4 Max passed; HY4 Flash connected successfully but predicted outside the ground-truth box.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


chenyixiong.cyx seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@LawisChen
LawisChen force-pushed the yixiongchen/feat/grounding-benchmark branch 3 times, most recently from fce22eb to 41fe81a Compare November 18, 2026 08:29
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1adc628
Status: ✅  Deploy successful!
Preview URL: https://b096f5ed.midscene.pages.dev
Branch Preview URL: https://yixiongchen-feat-grounding-b.midscene.pages.dev

View logs

@LawisChen
LawisChen force-pushed the yixiongchen/feat/grounding-benchmark branch 17 times, most recently from 683824b to 958d1f3 Compare November 25, 2026 09:24
chenyixiong.cyx added 3 commits November 26, 2026 15:35
Add 100 mobile and 100 web testcases with bilingual instructions,
screenshots, point or refusal ground truth, and SHA-256 integrity records.

Include the candidate source index, source-specific licenses, attribution,
modification notices, and settings that preserve hashed dataset files.
Add dataset preparation and validation, the testcase viewer, model
evaluation, static reports, and report merging. Record model calls,
observed snapshot IDs, timings, token usage, and execution errors.

Compute summary and chart metrics during report generation. Emit a full
report, an embeddable scatter plot, and reusable metrics.json. Include
reference presets, cancellable aiLocate support, and regression tests.
Publish bilingual benchmark reports covering the dataset, metrics, and
model selection. Embed the scatter plot and document the CLI workflow,
report deployment, and dataset licensing.
@LawisChen
LawisChen force-pushed the yixiongchen/feat/grounding-benchmark branch from 230a4d9 to 1adc628 Compare November 26, 2026 07:38
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.

2 participants