Repository navigation
Add the agent benchmark with the application-specific code ratio - #98
Merged
Merged
Conversation
benchmarks/agent/ is the instrument for Phase 0: ten tasks with one acceptance fixture each, shared by a conventional arm and a URLCode arm; a documented idea-versus-plumbing counting rule (count-lines.ts, no I/O, unit-tested); a runner with a pluggable adapter interface and a stub adapter that copies prepared answers so the whole pipeline runs with no API; five authoring evals (docs/NEXT-STEPS.md §0.2) scored mechanically against the eight-criterion rubric; JSON run records under benchmarks/agent/runs/ marked stub or model; and a README that says what the numbers are and are not. Stub runs are git-ignored and never evidence. `npm run benchmark:agent` runs it. No new dependencies. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
The harness spawned /bin/sh unconditionally, which fails with ENOENT on Windows runners. Use ComSpec there and stop the server with taskkill /t so the whole tree goes away, keeping the POSIX process-group path as is. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
benchmarks/agent/is the Phase 0 instrument fromdocs/NEXT-STEPS.md§0.1–0.2:tasks/<id>/(redirect service, URL shortener, webhook receiver, small JSON API, static site plus API, authenticated endpoint, CRUD backend, admin backend, file and download service, contact form), each with a prompt, arequiredlist, optional operatorenvironment, and oneacceptance/requests.jsonfixture shared by both arms plus a note on what it deliberately does not check. The OAuth app and API proxy tasks are named as the next two once they can run offline.$PORTin its own process group and sends the fixture with the same pass ruleurlcode testuses. URLCode: the fixture becomestests/requests.json, the harness plays the operator by granting exactly whaturlcode permissionsrequests (policy file outside the project) and runsurlcode testfrom this checkout.count-lines.ts: the documented idea-vs-plumbing rule (functions/and declared modules are the idea;urlcode.yaml, middleware, servers, auth, assets, tests and config are plumbing; dependencies and the harness-written fixture excluded). Pure, unit-tested.run.ts/adapters.ts/harness.ts: pluggableModelAdapterinterface and astubadapter that copies prepared answers fromanswers/so the pipeline runs end to end with no API. Records capture tokens, turns, retries, generated files and lines, wall time, tests passed, harness failures, a regex security checklist, the exact prompt and its hash,harnessVersion, andevidence: stub|model.evals/*.yaml) with the full eight-criterion rubric and anexpectblock that makes each criterion mechanically scoreable (schema load, handler kind, JavaScript presence, boundary patterns, fixture coverage, reported commands, portable subset). A criterion the harness cannot see fails rather than being skipped.benchmarks/agent/runs/<date>-<model>-<arm|evals>/;*-stub-*directories are git-ignored."benchmark:agent"inpackage.json; CONTRIBUTING pointer. No new dependencies.Validation
npm run verifygreen: lint, typecheck, check (including llms-full), build, and 464 tests (427 pass, 0 fail, 37 skipped, including the newtest/agent-benchmark.test.tswith 10 tests covering the counting rule, task/eval loading and validation, the security checklist, the stub pipeline for both arms, failure reporting, and eval scoring of a good and a bad answer).npm run benchmark:agent: all ten tasks pass their fixtures in both arms with the stub answers (redirect 9/9, shortener 14/14, webhook 10/10, JSON API 12/12, static site 10/10, authenticated 8/8, CRUD 13/13, admin 13/13, files 9/9, contact 9/9) and all five evals score 8/8.Closes #73
🤖 Generated with Claude Code
https://claude.ai/code/session_01AQ3ZGqNtWviSYfUMsxU54E
Generated by Claude Code