lab: survive a killed run, and report none/low/high #5

Merged
hermes merged 1 commit from lab-crash-safe into main 2026-11-15 11:17:56 -06:00
Collaborator

Follow-up to #4, from the three-arm none/low/high run.

Crash safety. That run was killed mid-flight by an interrupted session and wrote no results.jsonl — 43 jobs of tokens with no artifact.

  • lab/run.py appends each row as the job lands; --resume skips jobs already on disk (verified idempotent: 51 rows on disk -> resuming: 51 result(s) on disk, 0 job(s) left).
  • lab/recover.py rebuilds rows for jobs a dead runner never wrote: the session is still in ~/.hermes/state.db with its token counts and transcript, so the answer is re-graded with no model call. 45 of 51 rows were recovered this way; 3 cells whose recovered answer was empty/truncated were re-run instead of trusted.

Results (runs/abc-none-low-high, 17 tasks, n=1 per cell, 3 skipped for missing Go):

effort pass med reason tok med total tok med tool calls med sec
none 15/16 5 078 97 110 8.5 85.8
low 15/16 2 656 85 799 7.0 67.7
high 16/16 3 180 96 376 10.0 78.4

13 of 16 tasks pass in all three arms; the two discriminating tasks flip in opposite directions. Median tokens are within 13% across arms — the spread in the sums is two runaway single runs (1.6M at none, 1.2M at low). none is not a no-thinking baseline on this route: with reasoning_config.enabled: false the session logged more reasoning text and more tool calls than low.

Grader fix. nix_initrd_closure failed all three arms on correct answers ("the image's copy of the store", "the initrd's /nix/store is NOT the machine's store", "a fixed cpio archive, not a mount of the host's store"). any_of only knew the commit's wording. Broadened; selftest.py still fails the fluent-but-wrong answer (16 tasks, 0 problems), and regrade.py re-applied it with no model calls.

Also: lab/ab_run.sh takes AB_EFFORTS so the wrapper is not hardcoded to low,high.

Backend tests: 172 passed. lab/RESULTS.md carries the full per-task table and the caveats.

Follow-up to #4, from the three-arm `none`/`low`/`high` run. **Crash safety.** That run was killed mid-flight by an interrupted session and wrote no `results.jsonl` — 43 jobs of tokens with no artifact. - `lab/run.py` appends each row as the job lands; `--resume` skips jobs already on disk (verified idempotent: 51 rows on disk -> `resuming: 51 result(s) on disk, 0 job(s) left`). - `lab/recover.py` rebuilds rows for jobs a dead runner never wrote: the session is still in `~/.hermes/state.db` with its token counts and transcript, so the answer is re-graded with no model call. 45 of 51 rows were recovered this way; 3 cells whose recovered answer was empty/truncated were re-run instead of trusted. **Results** (`runs/abc-none-low-high`, 17 tasks, n=1 per cell, 3 skipped for missing Go): | effort | pass | med reason tok | med total tok | med tool calls | med sec | |---|---|---|---|---|---| | none | 15/16 | 5 078 | 97 110 | 8.5 | 85.8 | | low | 15/16 | 2 656 | 85 799 | 7.0 | 67.7 | | high | 16/16 | 3 180 | 96 376 | 10.0 | 78.4 | 13 of 16 tasks pass in all three arms; the two discriminating tasks flip in opposite directions. Median tokens are within 13% across arms — the spread in the *sums* is two runaway single runs (1.6M at none, 1.2M at low). `none` is not a no-thinking baseline on this route: with `reasoning_config.enabled: false` the session logged more reasoning text and more tool calls than `low`. **Grader fix.** `nix_initrd_closure` failed all three arms on correct answers ("the image's copy of the store", "the initrd's /nix/store is NOT the machine's store", "a fixed cpio archive, not a mount of the host's store"). `any_of` only knew the commit's wording. Broadened; `selftest.py` still fails the fluent-but-wrong answer (16 tasks, 0 problems), and `regrade.py` re-applied it with no model calls. **Also:** `lab/ab_run.sh` takes `AB_EFFORTS` so the wrapper is not hardcoded to low,high. Backend tests: 172 passed. `lab/RESULTS.md` carries the full per-task table and the caveats.
The three-arm run was killed mid-flight and wrote no results.jsonl, throwing
away 43 jobs of tokens. run.py now appends each row as the job lands and takes
--resume; recover.py rebuilds rows for jobs a dead runner never wrote by
re-grading the session transcript from the state DB, with no model call.

Results: none 15/16, low 15/16, high 16/16 on 16 gradable tasks. Median total
tokens within 13% across the arms; the spread in the sums is two runaway runs.
The suite is still too easy to rank effort levels, so the recommendation stands
at low pending a harder tier and --repeat 3.

nix_initrd_closure failed answers that were right: its any_of list only knew the
reference commit's vocabulary. Broadened; selftest still fails the wrong answer.
hermes merged commit 4cf4309daf into main 2026-11-15 11:17:56 -06:00
hermes deleted branch lab-crash-safe 2026-11-15 11:17:56 -06:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ymrtech/hermes-bench!5
No description provided.