Skip to content

Add Extended benchmark suite - #7

Merged
merefield merged 1 commit into
mainfrom
agent/add-extended-benchmarks
Aug 11, 2026
Merged

merefield merged 1 commit into
mainfrom
agent/add-extended-benchmarks

Conversation

@merefield

Copy link
Copy Markdown
Owner

Summary

Adds a separate Extended benchmark suite designed to create more separation between models and reasoning efforts without making the default Core run more expensive.

New hard challenges

  • Dependency Scheduler (Hard) — computes the optimal makespan for a dependency DAG with job durations and limited identical workers
  • Version Resolver (Hard) — satisfies dependency ranges and conflicts while selecting the lexicographically greatest valid version set
  • Event Processor (Hard) — applies ordered, idempotent ledger events with transfers, freezes, reversals, failure precedence, and a canonical audit result

Each challenge has an independent Go oracle, hand-written edge cases, reproducibly generated hidden cases, strict result-shape validation, and input-mutation detection.

Suite and interface behavior

  • keeps the existing four tasks in the default Core suite
  • adds a clickable Core/Extended selector with the u hotkey
  • changes Run All to Run Suite, so a executes only the active suite
  • shows (EASY), (MODERATE), or (HARD) on every task label and result
  • preserves responsive controls and mouse hit regions, including very narrow terminal allocations
  • shows the applicable per-case Starlark budget: 250K steps for Core and 2M for Extended

Documentation and version

  • documents both suites, their verification sets, controls, cost implications, and execution limits
  • bumps the maintained source version to v0.3.0

Why

The original challenges primarily exercise familiar single algorithms, so capable models can cluster around the same result. The Extended suite combines optimisation, constraint solving, and detailed state-machine rules to reward deeper planning and specification tracking.

Keeping it separate is intentional: users can still run the quicker four-task Core suite, while opting into the three more expensive reasoning challenges when they want greater result spread.

Safety and determinism

  • no LLM judge or subjective scoring
  • no filesystem, process, network, clock, or environment access from submitted Starlark
  • deterministic seeds and exact comparison against separate Go implementations
  • 64 KiB source limit, bounded result shapes, and per-case execution limits
  • Run Suite retains exact turn-count display and confirmation because trials consume Codex quota

Validation

  • go vet ./...
  • go test -race -cover ./...
    • root: 54.7%
    • internal/codex: 85.4%
    • internal/ui: 91.8%
    • internal/version: 81.0%
  • local binary reports codexometer v0.3.0
  • cross-builds succeed for macOS, Linux, and Windows on amd64 and arm64

@merefield
merefield marked this pull request as ready for review August 11, 2026 21:49
@merefield
merefield requested a lite review from Copilot August 11, 2026 21:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an Extended benchmark suite alongside the existing Core suite, expanding Codexometer’s deterministic benchmark catalog while keeping the default run cost unchanged. This includes new “Hard” challenges with Go oracles and updates the TUI to switch/run suites explicitly, plus a source version bump to v0.3.0.

Changes:

  • Introduces Core vs Extended suite separation, with suite-scoped task catalogs and per-suite step budgets (250K vs 2M steps per case).
  • Updates the TUI benchmark controls to toggle suites (u) and change Run All → Run Suite semantics (runs only the active suite).
  • Adds three new “Hard” benchmark verifiers/oracles and updates docs/tests + versioning to v0.3.0.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
README.md Documents suite toggle, updated benchmark controls/terminology, difficulty labels, and per-suite budgets; bumps documented version to v0.3.0.
main_test.go Updates expected --version output to v0.3.0.
internal/version/version.go Bumps maintained fallback version to 0.3.0.
internal/version/version_test.go Updates version fallback test expectation to 0.3.0.
internal/ui/model.go Adds benchmark suite state, hotkey handling (u), and suite-aware task selection/run behavior.
internal/ui/benchmark.go Adds suite selector control, ensures narrow-width rendering stays within allocations, updates UI text to “Run Suite”, and displays suite-specific step budget.
internal/ui/benchmark_test.go Adds coverage for suite toggle behavior, narrow-width control rendering, and “Run Suite” launching only active-suite tasks.
internal/codex/benchmark.go Introduces extended per-case step limit constant and renews step budget per case for Merge Ranges verifier.
internal/codex/benchmark_test.go Updates catalog expectations for the expanded 7-task benchmark list.
internal/codex/benchmark_tasks.go Adds suite/task IDs, tags tasks with suite + difficulty suffixes, provides BenchmarkTasksForSuite, and renews step budget per case for Core verifiers.
internal/codex/benchmark_extended_tasks.go Implements Extended challenge verifiers + deterministic generators + Go reference oracles, with per-case 2M step budget renewal.
internal/codex/benchmark_extended_tasks_test.go Adds acceptance/rejection/mutation tests for Extended verifiers and validates suite partitioning + labels + oracle outputs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@merefield
merefield merged commit 8687924 into main Aug 11, 2026
7 checks passed
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