tinycomputerai/bun-server-bench

bun-server-bench: a correctness benchmark of 50 production-shaped Bun server engineering tasks for evaluating AI coding agents.

Published 6/21/2026 by

harbor run -d tinycomputerai/bun-server-bench

bun-server-bench

A correctness benchmark of 50 production-shaped Bun server engineering tasks for evaluating AI coding agents.

Each task asks an agent to implement a small but realistic Bun backend service — HTTP APIs, authentication, SQLite transactions, idempotency, concurrency, rate limiting, background jobs, observability, WebSockets, and file uploads. Every task is engineered so that a plausible-but-wrong implementation passes the public tests and fails the hidden ones. The score measures behavioral correctness under a contract, not runtime speed — a fast server that returns the wrong status code scores zero.

Run it

# the whole suite
harbor run -d tinycomputerai/bun-server-bench --agent <your-agent> -e docker

# a single task (oracle = the reference solution)
harbor run -p tinycomputerai/bun-server-bench-databases-optimistic-version-v1 --agent oracle -e docker -y

Scoring

Each task's verifier writes a gate-based reward to reward.txt:

reward meaning
1.0 public and hidden tests pass
0.25 public pass, hidden fail (found the visible path, missed the edge cases)
0.0 public fail, or install / startup / timeout

A reward of 0.25 is the discriminative signal the benchmark is built around.

Integrity

  • Hidden tests are injected only at verification time — never baked into the agent image.
  • Tasks run with zero runtime dependencies and networking disabled, so the agent must implement the capability rather than import it.
  • Reference solutions are excluded from the agent workspace.

Links

License: Apache-2.0

Task
tinycomputerai/bun-server-bench-observability-request-metrics-v1
tinycomputerai/bun-server-bench-error-handling-safe-error-v1
tinycomputerai/bun-server-bench-idempotency-payment-capture-v1
tinycomputerai/bun-server-bench-pagination-consistent-snapshot-v1
tinycomputerai/bun-server-bench-file-uploads-multipart-checksum-v1
tinycomputerai/bun-server-bench-crud-systems-etag-concurrency-v1
tinycomputerai/bun-server-bench-http-conditional-cache-semantics-v1
tinycomputerai/bun-server-bench-background-jobs-simple-status-v1
tinycomputerai/bun-server-bench-idempotency-exactly-once-webhook-v1
tinycomputerai/bun-server-bench-middleware-request-id-v1
tinycomputerai/bun-server-bench-crud-systems-memory-notes-v1
tinycomputerai/bun-server-bench-authorization-scoped-tokens-v1
tinycomputerai/bun-server-bench-pagination-bidirectional-cursor-v1
tinycomputerai/bun-server-bench-databases-optimistic-version-v1
tinycomputerai/bun-server-bench-error-handling-circuit-breaker-v1
tinycomputerai/bun-server-bench-background-jobs-retry-queue-v1
tinycomputerai/bun-server-bench-validation-required-name-v1
tinycomputerai/bun-server-bench-background-jobs-cron-exactly-once-v1
tinycomputerai/bun-server-bench-rate-limiting-token-bucket-v1
tinycomputerai/bun-server-bench-authentication-jwt-refresh-rotation-v1
tinycomputerai/bun-server-bench-caching-cache-stampede-v1
tinycomputerai/bun-server-bench-rate-limiting-client-window-v1
tinycomputerai/bun-server-bench-file-uploads-resumable-chunks-v1
tinycomputerai/bun-server-bench-rate-limiting-sliding-window-v1
tinycomputerai/bun-server-bench-event-sourcing-idempotent-projection-v1
tinycomputerai/bun-server-bench-databases-sqlite-ledger-v1
tinycomputerai/bun-server-bench-authentication-jwt-key-rotation-v1
tinycomputerai/bun-server-bench-websockets-backpressure-ordering-v1
tinycomputerai/bun-server-bench-scheduling-dst-recurrence-v1
tinycomputerai/bun-server-bench-websockets-seqnum-resume-v1
tinycomputerai/bun-server-bench-authorization-confused-deputy-v1
tinycomputerai/bun-server-bench-websockets-presence-room-v1
tinycomputerai/bun-server-bench-observability-trace-context-propagation-v1
tinycomputerai/bun-server-bench-sagas-compensation-rollback-v1
tinycomputerai/bun-server-bench-security-signed-url-replay-v1
tinycomputerai/bun-server-bench-authentication-jwt-verify-v1
tinycomputerai/bun-server-bench-queues-per-key-fifo-v1
tinycomputerai/bun-server-bench-pagination-keyset-feed-v1
tinycomputerai/bun-server-bench-retry-poison-message-budget-v1
tinycomputerai/bun-server-bench-authentication-bearer-profile-v1
tinycomputerai/bun-server-bench-file-uploads-text-bytes-v1
tinycomputerai/bun-server-bench-databases-write-skew-isolation-v1
tinycomputerai/bun-server-bench-rate-limiting-distributed-fairness-v1
tinycomputerai/bun-server-bench-idempotency-dedup-conflict-v1
tinycomputerai/bun-server-bench-concurrency-lock-ordering-deadlock-v1
tinycomputerai/bun-server-bench-authorization-rbac-roles-v1
tinycomputerai/bun-server-bench-http-apis-todo-health-v1
tinycomputerai/bun-server-bench-databases-sqlite-migrations-v1
tinycomputerai/bun-server-bench-http-apis-json-echo-v1
tinycomputerai/bun-server-bench-databases-online-migration-backfill-v1

Displaying 50 of 50 tasks