Skip to content

Add frozen health time-series benchmark suite and /benchmark section - #60

Merged
its-luis-sch merged 1 commit into
mainfrom
site/benchmark-1.6
Dec 4, 2026
Merged

its-luis-sch merged 1 commit into
mainfrom
site/benchmark-1.6

Conversation

@its-luis-sch

Copy link
Copy Markdown
Contributor

Summary

Adds a frozen synthetic wearable and health MCP time-series benchmark suite (--suite health) and surfaces its Format 1.6 (o200k_base) token counts on /benchmark and /benchmark.md.

Frozen suite (bench/src/health/, bench/data/health/)

  • Six synthetic wearable/health MCP payloads generated deterministically from seed 20261204 (no personal or real health data):
    • health-daily-30d (30 rows) and health-daily-90d (90 rows): daily summaries with sparse optional HRV, sleep, and notes.
    • health-metric-30d (30 rows) and health-metric-90d (81 rows): HRV metric history with summary and data-health metadata.
    • health-measurements-30d (156 rows) and health-measurements-90d (471 rows): timestamped multi-source wearable and scale readings.
  • 120 frozen exact-answer questions (20 per dataset) with SHA-256 hashes recorded in bench/data/health/README.md and enforced in bench/src/data.ts and bench/src/health/freeze.test.ts.
  • Wired into bench CLI as --suite health with an 8,192-token default output cap.

Measured Format 1.6 (o200k_base, rules included, 100% lossless round-trip)

Payload Rows Terset 1.6 Compact JSON Pretty JSON TOON best vs compact JSON vs TOON
Daily summaries, 30 days 30 613 1,752 2,709 2,204 -65.0% -72.2%
Daily summaries, 90 days 90 1,830 5,088 7,863 6,401 -64.0% -71.4%
HRV metric history, 30 days 30 198 595 1,042 496 -66.7% -60.1%
HRV metric history, 90 days 81 626 1,462 2,572 1,159 -57.2% -46.0%
Timestamped measurements, 30 days 156 2,316 8,349 12,759 9,739 -72.3% -76.2%
Timestamped measurements, 90 days 471 7,684 25,163 38,432 29,307 -69.5% -73.8%
Total 858 13,267 42,409 65,377 49,306 -68.7% -73.1%

Site updates (apps/site/)

  • Added pnpm health (apps/site/scripts/update-health.ts) and strict Zod schema (health-data-schema.ts) validated by data-check.ts.
  • Added the Health time series section (#health-data) after Real data on /benchmark and in benchmark.md, noting explicitly that these are offline counts and live model accuracy runs on the 120 questions are not published yet.

Verification

  • pnpm gate on Node 24 (generate, typecheck, lint with --max-warnings=0, test across JS/Python/vitest/agent-docs, build, deploy:check): exit 0.
  • Verified lossless Format 1.5 and 1.6 round-trip on all 6 datasets in both JavaScript (@stackdeck/terset) and Python (packages/terset-py).
  • Verified cross-timezone/locale reproducibility in bench/src/health/freeze.test.ts and CLI dry-run via pnpm bench --suite health --formats json-compact,toon,terset --dry-run.

Follow-up

  • Once Claude is available, refresh Format 1.6 Claude counts (count:claude) and run live accuracy benchmarks on Format 1.6 (244-question suite and the 120 frozen health questions).

@its-luis-sch
its-luis-sch merged commit 061d3f9 into main Dec 4, 2026
4 checks passed
@its-luis-sch
its-luis-sch deleted the site/benchmark-1.6 branch December 4, 2026 01:27
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