Repository navigation
Conversation
illusoryw
force-pushed
the
feat/deepswe
branch
3 times, most recently
from
December 1, 2026 22:36
d1c780f to
30dd7a2
Compare
… them examples/deepswe/ packages DeepSWE v1.1 (datacurve/deep-swe-1-1@1 on the Harbor hub, 113 tasks of 91 repositories) as the other Harbor benchmarks are: a benchmark file whose dataset block prepare reads, the lock of the 113 tasks and the images' sizes, splits (every task a test task: DeepSWE is held-out evaluation data, so the protocol is SWE-bench Verified's transfer), baseline configs for both CLI profiles the other benchmarks have, task-info and README. DeepSWE grades the agent's commits in a verifier container of their own, which Harbor 0.25.0 runs as published. Two things are the example's own: - utils/patches.py: each task's [[verifier.collect]] diff leaves out everything Hermit's deployment of an adapter writes at the repository's root (the adapter's folder, the context file, the CLI's places, the deployment's record, the hooks' audit). The instruction asks the agent to commit everything, so without this an arm with an adapter would be graded on a tree holding those files and an arm with none without them; a test deploys AHE's template as a run does and fails if any entry it writes there is not left out. - utils/judge.py: DeepSWE's test.sh writes reward -1 when its grader crashed before grading any test; the judge records that as no score (Unscored, counted as infra by hermit.harbor.report) instead of a -1.
illusoryw
force-pushed
the
feat/deepswe
branch
from
December 1, 2026 23:16
30dd7a2 to
1f99d91
Compare
This branch has not been deployed
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.
Change
Adds
examples/deepswe/: DeepSWE v1.1 by Datacurve, 113 original,long-horizon engineering tasks on 91 open-source repositories (tasks in Python 34, TypeScript 35, Go 34, JavaScript 5,
Rust 5), from the Harbor hub's
datacurve/deep-swe-1-1at revision 1, each task in its own Harbor environment. It is packaged as
swebench_verified/is: autils/benchmark.yamlwhosedataset:block(
ref: datacurve/deep-swe-1-1@1)python -m hermit.harbor.dataset preparereads, the committeddataset.lockandimage_sizes.json, splits, Codex and Claude Code baseline configs, task-info and README. DeepSWE is held-outevaluation data, so nothing trains: like SWE-bench Verified, the protocol is a transfer, a frozen adapter evolved
elsewhere (Terminal-Bench 2.0's final AHE adapter) tested against the same acting agent with no adapter.
DeepSWE grades the agent's commits, as published, which Harbor 0.25.0 runs as it is: the instruction asks the agent to
work on a new branch and commit everything; once the agent stopped, a
[[verifier.collect]]command writesgit diff --binary <base commit> HEADas/logs/artifacts/model.patch; the verifier runs in a container of its own(
environment_mode = "separate", the task's verifier image with the hidden tests, no network), applies the patch to thepristine repository and runs the tests. Two things are the example's own:
utils/patches.py(the block'sdataset.patch, recorded in the lock): each collect command gets a pathspec thatleaves out what Hermit's deployment of an adapter writes at the repository's root (
hermit/,AGENTS.md,CLAUDE.md,.codex/,.claude/,.mcp.json,.hermit-deploy.json, the hooks'.hermit-hooks/,tool-calls.jsonl); a test deploys AHE's template as a run does and fails if any entry it writes there is notleft out. An agent that commits everything, as the
instruction asks, commits those too, and an arm with an adapter would be graded on a tree holding them and an arm
with none without them. No task's reference solution or test patch touches any of them (checked on all 113).
utils/judge.py(the configs'judge, as AlgoTune's are): DeepSWE'stest.shwrites reward-1when its gradercrashed before grading any test (its "infrastructure error"). The environment judge would score that as the agent's
-1, pulling every mean down. The judge records it as no score (Unscored), whichpython -m hermit.harbor.reportcounts as infra, apart from the trials its pass@1 is over. The run does not retry it by itself (the README says how
to run it again).
No core code changes.
tests/core/test_harbor_examples.pyaddsdeepsweto its Harbor benchmarks.Docs: the example's
README.mdandutils/task-info/README.md,examples/README.md(Harbor benchmarks, the hand-offtable, the disk note, the sign-in's network: this task set's agents reach only the model's hosts),
docs/framework/task.md(the example list),CHANGELOG.md(Added).Differences from DeepSWE's own runs:
-1)eval.repeatsto match a report)Validation
On
1f99d91(this PR's commit), Python 3.12, Linux, Docker, Harbor 0.25.0:python -m pytest --changed --base main, with every dependency group installed (pip install -e '.[test]' --group all; the core group, with every example's own tests): 1,427 passed, 116 skipped, 6 failed. The same 6 fail the sameway on
mainin this environment:test_codex_in_a_tasks_environment_keeps_the_runners_256k_instruction_allowance(the task environment's own Python lacks
jsonschema),test_round_6_hermit_side, and the sandbox's four venv tests(
test_a_granted_venvs_*,test_a_venv_under_*,test_a_linked_venv_*), whose interpreter path differs in this testenvironment's venv.
python -m pytest examples/deepswe --durations=0: 10 passed in 1.28 s (the slowest, the deployment guard, deploysAHE's template twice). With the prepared tasks moved away (as on CI), the example's tests and
tests/core/test_harbor_examples.py: 108 passed.bash docs/build.sh: built, no warnings.pre-commit run --all-files: all hooks passed.The offline walkthrough of
CONTRIBUTING.md:hermit checkexit 0, every item[ok](one warning, thewalkthrough config's
best_effortsandbox);hermit trainexit 0, completed all epochs, 2 steps;hermit eval --adapter finalexit 0,mean_score1.0 on 2 tasks, 0 errors.hermit check --no-probeon both baseline configs: only what every Harbor baseline reports (theeval-onlyplaceholder Evolver, no hard budget); the Claude Code config also reports that
CLAUDE_CODE_OAUTH_TOKENis not sethere.
python -m hermit.harbor.dataset prepare examples/deepswe/utils/benchmark.yaml: 113 rows, matching the lock,image_sizes.jsonfor all 113 images (about 111 GB compressed).Harbor's oracle (the reference solution, committed) and nop on the patched smoke tasks (
harbor run -a oracle/-a nop), the reward and the tests the change must make pass (f2p) and keep passing (p2p):mashumaro-flattened-dataclass-fields(Python)tengo-callable-instance-isolation(Go)Through Hermit's own Harbor environment (
hermit.environment.harbor; a scripted agent's commands in the task'scontainer), with the files Hermit's deployment of an adapter writes left at the repository's root (
hermit/ahe/,AGENTS.md,.codex/config.toml,tool-calls.jsonl,.hermit-deploy.jsonnaming a workspace path,.hermit-hooks/hook-calls.jsonl) andgit add -A && git commitof everything: the reference solution ontengo-callable-instance-isolationscored 1, the gradedmodel.patchholding the solution's four files (call.go,objects.go,script.go,vm.go) alone; onmashumaro-flattened-dataclass-fieldsthe deployment alone scored 0,with an empty
model.patch.Smoke,
hermit eval --config examples/deepswe/baseline/codex.yaml --adapter none data.test=../utils/splits/smoke.txt(config):
mean_score0,errors0, 688 s, 0 of 2 resolved (python -m hermit.harbor.report: 2 scored, 0 infra, 0 failed). Codex committedits work on a branch of its own as the instruction asks, its patch applied in the verifier's container, and DeepSWE's all-or-nothing
reward scores each 0. The records (
baseline/runs/<run>/eval/none/, git-ignored asCONTRIBUTING.md asks), one row each:
jobs_dir)mashumaro-flattened-dataclass-fieldsmashumaro-flattened-dataclass-fields_0__777e3c19tengo-callable-instance-isolationtengo-callable-instance-isolation_0__a6f56598The smoke's records:
summary.jsonand each record ofresults.jsonl(without its output, the agent's final message, and with the judge's feedback cut to its first line){"adapter": "none", "commit": null, "tasks": 2, "repeats": 1, "mean_score": 0.0, "solved_once": 0.0, "cost_usd": null, "unknown_cost_tasks": 2, "errors": 0, "wall_s": 687.7}{"id": "mashumaro-flattened-dataclass-fields#0", "status": "ok", "error": null, "judge": {"score": 0.0, "feedback": "reward 0", "extra": {"status": "ok", "passed": false, "rewards": {"reward": 0, "f2p_total": 66, "f2p_passed": 66, "p2p_total": 30014, "p2p_passed": 30013, "f2p": 1.0, "p2p": 0.9999666822149663, "partial": 0.9999667553191489}}}, "tokens": 1385700, "wall_s": 316.0, "trial": "mashumaro-flattened-dataclass-fields_0__777e3c19"} {"id": "tengo-callable-instance-isolation#0", "status": "ok", "error": null, "judge": {"score": 0.0, "feedback": "reward 0", "extra": {"status": "ok", "passed": false, "rewards": {"reward": 0, "f2p_total": 23, "f2p_passed": 4, "p2p_total": 122, "p2p_passed": 122, "f2p": 0.17391304347826086, "p2p": 1.0, "partial": 0.8689655172413793}}}, "tokens": 3394849, "wall_s": 525.8, "trial": "tengo-callable-instance-isolation_0__a6f56598"}trialis the record'sjudge.extra.trial_dirunderjobs_dir.Not verified:
baseline/claude.yamlhas not been run (no Claude subscription token here; its config loads and passesthe Harbor environment's checks in the tests). No full run of the 113 tasks. A real grader crash (
-1) was not met;the judge's handling of it is tested on the verdict Hermit's Harbor environment gives.
Review
Tests and documentation cover the affected behavior, where applicable. Tests:
examples/deepswe/utils/tests/test_collected_commits.py,examples/deepswe/utils/tests/test_crash_sentinel.pyand the
deepsweentry oftests/core/test_harbor_examples.py. Documentation: as in Change.Commands, defaults, and public interfaces are consistent. No command, default or interface changes.
Agents follow the agent layers. No new agent: the configs use the Codex and Claude Code Base Agents in each
task's Harbor environment (
environment.harbor).Shared logs and examples contain no credentials or private data. No run records are committed; the prepared
tasks are git-ignored (
utils/tasks,utils/tasks.jsonl).Documentation-only: not applicable.
Core changes. None under
hermit/.Implementation correctness and failures. Traced: the benchmark file's settings to Harbor's trial (the
model's hosts as
extra_allowed_hosts, each task's own timeouts), seen in the smoke trials'config.json; thepatched collect command on a real git repository in the tests and on the real images; the judge through the
rollout's own
_judgedandhermit.harbor.report. A patch that does not apply is DeepSWE'sapply_failed, reward 0; uncommitted work is not graded (DeepSWE's protocol, stated in the README); a grader crashis no score; an infra trial is infra as for every Harbor benchmark.
Real execution paths and tests. The smoke goes through
hermit evalwith real Codex sessions; the end-to-endrun through Hermit's Harbor environment and Harbor's oracle use the real tasks and images. The judge's test loads
the baseline config (
Config.load), its judge as the run loads it (hermit.isolate.judge_for), calls itthrough the rollout (
hermit.trainer.rollout._judged) on verdicts fromHarborEnvironments.verdict, and readsthe rows with
hermit.harbor.report.Documentation. As in Change.
This description. Read end to end against the code at
1f99d91and the records.Independent review (post-PR audit). An agent in a separate session audited the published PR against the
general, benchmark, test and sandbox checklists: nothing blocking. Its confirmed findings are fixed in this
commit: the README and the judge's docstring said to grade a crashed trial by running
hermit evalagain on itsrow, which under the eval's run name writes over the eval's
results.jsonlandsummary.json(they now give arun name and jobs folder of the rerun's own); the 113 images are about 111 GB compressed, not 105 GB. Left as
minor: a
-1the agent's own patch caused (an early exit in a task's test section) would also be no score;the judge's test calls
hermit.trainer.rollout._judged, the functionrun_taskscalls a judge through; someadded prose lines run past 120 characters.
Task directories. The hub's Harbor task directories, through
python -m hermit.harbor.dataset prepare(
ref: datacurve/deep-swe-1-1@1) and onedataset.patch(reason above). Run in Harbor's environments.Public and private halves. No
data.view. A row holds the instruction, the task's settings (image,resources, network modes, timeouts) and its metadata (titles, category, language, repository URL, base commit).
The hidden tests, the grader and the reference solution are only in the task's
tests/(baked into theverifier's image) and
solution/, never in the agent's container (the probe below). The judge's feedback is theverdict and the verifier output's tail (test names and output); no learner reads it in these eval-only configs.
What a task asks. Each
task.toml: agentno-network(the run adds its model's hosts), verifierno-networkin its own container, 2 CPUs and 8 GB each, which the configs do not override; the configs run 4tasks at a time. Effective timeouts:
Parity, for a moved benchmark. Not applicable: a new benchmark.
A real run. The smoke above, through
hermit eval, no infrastructure error.Group and selection. The example's tests are in its own
examples/deepswe/utils/tests/(the core group bytests/selection.py, which--changedselects). The file names are unique among the examples' tests (pytestimports them by basename).
Names. e.g.
test_an_agent_that_commits_everything_is_graded_on_its_own_change_alone,test_a_grader_that_crashed_is_no_score_and_the_report_counts_it_apart.Docstrings. Each file opens with the code under test, its stand-ins (a git repository under
tmp_path;Harbor's command stood in for by this interpreter) and "no network, no Harbor, no Docker" / "no environment
starts".
What it asserts. What a caller sees: the collected patch's files, the row's status and error,
hermit.harbor.report's classification and summary; the deployment guard deploys AHE's template for both CLIsand checks every root entry. Checked to fail without each fix: the collect command without the exclusion; the
old exclusion list (the guard and the extended commit-all test); the judge without its
-1check (theenvironment judge's score of
-1).Real entry points and stand-ins. As under Real execution paths; the collect command runs as the trial runs it
(
bash -c, paths rewritten totmp_path).Isolation.
tmp_pathonly, git's global config a file of its own, no network, sign-in or agent CLI; the lockand split test reads committed files only and passes without prepared data.
Time and order. No dates, sleeps or shared state.
Cost. 10 tests, 1.28 s together.
Hygiene. No unused imports; each git subprocess ends with its test.
Reuse the framework's sandbox. The agent runs in its task's Harbor environment, the verifier in its own
container (DeepSWE's separate mode); the judge runs on the host and only reads the verdict Harbor recorded. No
process runs
Local. Evidence: the smoke trials (judge.extra.trial_dir, under the config'sjobs_dir), whoseconfig.jsoncarriesextra_allowed_hosts: ["chatgpt.com", "auth.openai.com"]; and the check below, run throughHermit's Harbor environment with that allowlist on
tengo-callable-instance-isolation(a copy of the prepared taskwhose
test.shruns the probe; the agent's file committed): in the agent's phase only the model's hosts answerand neither
/testsnor/solutionexists; the verifier's container is another host, reaches nothing, holds thecollected
model.patchand none of the agent's files (the probe'stest.shapplies nothing).Sandbox changes are core changes. No sandbox change.