Repository navigation
feat(benchmarks): add local tasks runner adapter - #160
Open
Cyberpradeep wants to merge 1 commit into
Open
Cyberpradeep wants to merge 1 commit into
Cyberpradeep wants to merge 1 commit into
Conversation
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
This PR implements
--bench localas proposed in #5, allowing Harness² to run recursive adaptation sweeps on an arbitrary local directory of instructions and source documents without requiring JobBench, LAB, or WorkBuddy installations.Implementation Overview
LocalAdapter(harness2/benchmarks/local.py):<tasks-dir>/<domain>/<task_id>/task.md.<domain>parent folder, preserving per-domain experience library growth across user tasks.task.tomlvia Python 3.12 standard librarytomllib(outputs,check,timeout).files/. Rollout edits never bleed into subsequent rollouts.run_argv) and Codex (exec).checkis configured, it executes strictly post-selection viaharness2-judge. Tasks without a check returnstatus="not_configured"and are reported as ungraded rather than judge failures.--base-harness.--bench local,--tasks-dir, and--base-harnessacross_common.py,run_sweep.py,judge.py,report.py, andcheck.py.harness2/preflight.pyfrom academic benchmark and third-party runner dependencies.harness2/core/. The implementation proves the benchmark seam incore/spec.pyworks as intended.Dependency & Coordination Notes
--bench local, run Harness² on your own folder of tasks #5LocalAdapterimplements the standardBenchmarkAdaptertask-input interface (task_prompt()andtask_files()). It performs rollout-level input fingerprint validation today. Once core: include task inputs in the reuse identity of a rollout #76 is merged intomain, scheduler-level task-summary resume invalidation will automatically activate forLocalAdapterwith zero code duplication.Task IDs follow the
<domain>/<task_id>convention, ensuring seamless out-of-the-box compatibility with PR Add opt-in human feedback for selection and reflection #6's--feedback-dirreview notes.Validation
python -m unittest -v tests.test_local_bench: All 7 unit/integration tests passed in 0.47s (OK).harness2 --bench local --tasks-dir <path> --dry-run: correctly discovers domains, tasks, and builds isolated namespaces.run_sweep,judge,report, andcheck.docs/LOCAL_BENCHMARK.md.