Skip to content

fix(datasets): reject invalid benchmark cache entries - #217

Closed
sunwrobert wants to merge 1 commit into
mainfrom
devin/ism-dec05-benchmark-harness-upstream
Closed

sunwrobert wants to merge 1 commit into
mainfrom
devin/ism-dec05-benchmark-harness-upstream

Conversation

@sunwrobert

@sunwrobert sunwrobert commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR

An invalid banking document or ProfBench row no longer prevents later runs from loading valid data.

What changed?

  • Validate banking listings and documents before caching them or reusing cached copies. A document must match the requested ID.
  • Validate ProfBench rows before caching or reusing a page, including when an origin failure triggers stale-cache fallback.

Why?

The cache previously accepted responses that passed a shallow shape check but failed the benchmark's schema. Later runs reused the same invalid payload even after the origin recovered.

How to test

bun test ./src/benchmarks/tau3-bench-banking/documents.test.ts ./src/benchmarks/profbench/dataset.test.ts ./src/datasets/cached-file.test.ts ./src/datasets/huggingface-cache.test.ts

The fixtures reject invalid data, refetch after recovery, and reuse the valid cache entry without another request.

Benchmark impact

Valid inputs and scoring are unchanged. Both benchmarks can recover after an invalid origin response, and a failed refresh no longer falls back to an invalid ProfBench page.

Reviewer focus

  • The same schema is applied to origin and cached data for each loader.

Checklist

  • Tests cover changed behavior
  • Public API or configuration changes are backward compatible, or the break is documented
  • No credentials, private results, or restricted dataset contents are included

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

Prompt hidden (unlisted session)

@sunwrobert sunwrobert closed this Dec 5, 2026
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