Repository navigation
cedr v0.12.0
v0.12.0 · 34 changes from 1 contributor
Highlights
Benchmark one configuration. Run cedr bench run --harness claude --model MODEL on a frozen public suite for code checks, list cost and visual artifacts.
Compare setups in clean agent homes. The old Bench is now Compare; vendor trials exclude user agent setup, with platform limits below.
Upgrade step: follow the moves and renames in Breaking before running existing suites.
Breaking
- Bench becomes Compare: no alias; switch scripts to
cedr compareand MCP calls tocompare_plan,compare_historyandcompare_show.
Upgrade step: move.cedr/bench/to.cedr/compare/, saved results fromcedr/bench/tocedr/compare/, andbench-pushed-<org>.txttocompare-pushed-<org>.txt. Move the old results before the first new Bench run; Bench history silently ignores them. A remainingbench_budget_usdkey blocks Compare, even with a command-line cap. Rename it tocompare_budget_usdand rename Action inputsbench,bench-budget-usd,bench-fail-on,bench-allow-unpricedto theircompareequivalents. Coordinate hosted/bench/runsand/bench/settingsmigrations to/compare/runsand/compare/settings. New result ids start withc-.
Features
- Standard Bench: one harness, model and effort works through a frozen edition in order. Code tasks provide a correctness gate; compare cost per solved code task and time per task, and judge the visual artifacts yourself. Run
cedr bench probewith the same harness and model to check the context fingerprint and shell/file readiness separately. Docker pins toolchains, fonts and browser, limits agent egress to provider hosts, and keeps graders offline. Font and annotation rules belong to the suite. - Local results: use
history,show,bench_historyandbench_showto read saved runs, thencedr bench export ID --out DIRto publish results and screenshots yourself. The edition's goal never stops work;--stop-at-usdadds an optional stop. Bench runs only in containers; the result recordseligible. - Request-tier pricing: Bench prices Claude cache writes by their reported lifetime and applies Haiku 5.5's fivefold rate above 100,000 prompt tokens per request. Monitor's aggregated counts still use base rates.
Fixes
-
Repeatable trials: Claude and Codex use filtered shadow homes that preserve toolchains and git configuration, plus fresh agent config directories with only linked sign-ins. User agent setup and account connectors stay out; Compare still loads the repo's setup. The custom
commandharness remains unisolated. -
Completed Claude runs: a terminal response ends the container invocation even when a background tool remains alive, preserving final usage for grading.
-
Probe and visual failures: readiness explicitly names the native patch/file-write tool and accepts trailing whitespace only; missing visual submissions are graded task failures, while missing artifacts promised by a grader remain errors.
-
Verified isolation: Docker Engine 28 or newer is required; Bench records an absent task-network gateway, or checks its reported gateway and a listening host port, and checks outside connectivity and DNS isolation after attaching the egress proxy, before inference. Containers use the invoking UID/GID, bounded memory, process counts and temporary storage. Rootless or remapped bind ownership is refused with an explanation.
-
Discovery cleanup: model-capability discovery containers are stopped and verified absent before trials, including a bounded wait when Docker is already removing one, so an app-server cannot keep the task container name busy.
-
Sign-in handling: cedr never writes a sign-in file. Shared tool-free Bench and Compare host checks use the real agent home so only vendor code coordinates renewals. Claude host checks have a separate $0.01 cap per check outside trial totals. Task containers mount sign-ins read-only and exclude renewal hosts; a failed task stops without retry. Compare links the real sign-in and reports when a vendor replaces the link, without copying a renewal back.
-
Cost and reference integrity: missing billable token classes leave cost unknown, hourly cache writes use their reported rate, and
--set-referencecannot replace an existing fingerprint or qualify a run for listing; a published reference match requires every input token class. Unknown costs display a known subtotal and cannot claim the run is within goal. Probe references live outside the frozen edition digest and can be published later. Their optionaltolerancedefaults to 16 tokens, accepts at most 64, and is recorded in probe results. -
Auditable task results: timeouts score zero and can complete a run; grading seeds are recorded. Workspace symlinks are skipped, agents and graders run in containers, and code and visual patches are saved for audit. Saved patches disable Git content transformations and include ignored files and nested repository contents as ordinary files. Each patch is replayed against a pristine starting tree and compared byte for byte with the grader copy;
evidence_mismatchcannot be reviewed clean and always blocks listing. The tamper scan checks added or changed lines against the starting commit, keeping submitted line numbers and dropping ordinary entry points, imports and process exits. Signals preserve correctness scores and block listing until a person reads the saved patches and recordscedr bench review ID --clean --note TEXTafter every flagged task's retained patch hash is verified;--tamperedkeeps the run ineligible. Reviews replace earlier reviews atomically, are validated on load, and appear inshow, export andbench_show. The credential masker uses the GitHub Actions runner encoder list and byte-substring matching. A match discards the task patch and submitted metadata, refuses clean review and requires a new run. Agent event streams are parsed for usage and discarded. Export writes results and screenshots, with signal kinds only; patches and tamper paths stay local.
Verification limits
- Gemini CLI: the adapter is built from its documentation and has no signed-in live verification. File-based sign-in is refused until a tool-free host check is verified; supported API-key credentials remain available.
- Antigravity: Bench refuses this harness until container support is available; use Compare for local comparisons.
- Platforms: macOS and Windows are untested for the container path. Claude macOS Keychain sign-in with a non-default config directory is untested. On Windows, a trial needs permission to create symbolic links; Windows isolates the agent config directory only, so a Codex trial records
clean_home: falseand is not fully clean. - Grader trust: hidden tests share the submission process. Nonces defeat early exits and printed fakes; plain equality and file hashing check task contracts, while wall-clock deadlines bound performance checks. Clean-tree replay and local patches support human review. Explicit comparison hooks, imported-module writes, builtin prototype writes and introspection prompt review, but eligibility does not prove absence of tampering; a clean review is a person's statement. A process boundary and published evidence are planned for edition 2.
- Live checks: complete container runs used Claude Haiku and GPT-6 Luna at low effort; both sign-ins still authenticated afterward. The narrowed audit emits no signals for either saved run's code patches or any reference solution. The revised Codex readiness prompt passed six consecutive container checks without retry; six fingerprint checks each reported 13,864 input tokens. The earlier 20-token difference cannot be attributed because its request context was not retained; references remain unset until publication. Runs use unpinned local images and cannot qualify for listing.
- Container effort: container effort discovery uses the installed Claude or Codex layer; other container adapters refuse explicit effort until their metadata is verified.
Full changelog
What's Changed
- feat(compare)!: rename bench and isolate vendor trial homes
- fix(releases): preserve published banner sources
- fix(compare): preserve toolchains in clean trial homes
- docs(bench): define the standard benchmark contract
- docs(bench): separate fingerprint and tool readiness probes
- feat(bench): run standard suites with isolated coding agents
- fix(bench): build suite images and price claude request tiers
- fix(bench): finish claude trials after the terminal response
- fix(bench): trim trailing whitespace in readiness files
- fix(bench): grade missing visual submissions as task failures
- chore(release): prepare bench and compare as cedr 0.12.0
- fix(bench): harden isolation, accounting and audit results
- chore(release): document benchmark verification limits
- fix(bench): stop discovery containers before running trials
- fix(bench): explain remapped uid failures in local graders
- fix(bench): verify isolation after attaching the egress proxy
- chore(release): record final benchmark verification limits
- fix(bench): scan only submitted lines for tamper signals
- fix(bench): stabilize probes and bound fingerprint tolerance
- feat(bench): record human tamper reviews
- fix(agent): keep newer sign-ins when trials renew credentials
- fix(bench): retain full evidence and report incomplete costs
- fix(agent): preserve usable sign-ins across concurrent renewals
- fix(bench): verify graded bytes and detect grader manipulation
- fix(agent): rank every displaced sign-in before cleanup
- fix(bench): leave container host renewals to vendor clis
- fix(bench): audit module assignments without flagging calls
- fix(agent): keep displaced sign-ins on equal write times
- docs(agent): distinguish sign-in links from saved renewals
- test(agent): retain the last token when exchange retries exhaust
- fix(bench): retain concurrent sign-ins without overwrites
- refactor(bench): simplify isolation and export guarded evidence
- fix(bench): mask sign-in values in results and stop saving transcripts
- chore(release): date cedr 0.12.0 and list every change
Full Changelog: v0.11.3...v0.12.0
