lab: Nix fleet benchmark suite + first low-vs-high reasoning run #4

Merged
hermes merged 2 commits from nix-fleet-lab into main 2026-11-14 22:50:14 -06:00
Collaborator

What

A lab layer on top of the fork that answers "does this model, at this effort, actually do our fleet's work?" with mechanical grading instead of keyword matching, plus the first low-vs-high run of deepseek-v4.1-flash.

  • suites/nix-fleet-lab.json — 17 tasks mined from nix-config history (activation restart semantics, stage-1 closures, wg-quick oneshot restarts, pipefail SIGPIPE, silent unit Conditions, deploy-gate exit 77, Python/Go coding tasks, CI fork secrets + base drift, module-system recursion). Each cites the commit that fixed it.
  • backend/engine/graders.py — contains_all / contains_any / regex / exec / json_block, replacing pass_keywords. exec writes hidden tests and runs them, so a coding task grades the file the model wrote.
  • lab/run.py — one suite × N efforts × R repeats → JSONL + Markdown report that quotes every failure verbatim; per-run reasoning tokens / API calls / tool calls read from the Hermes state DB.
  • lab/selftest.py — for each task a reference answer that must PASS, a fluent-wrong one that must FAIL, and regression good2 answers that quote the anti-pattern.
  • lab/regrade.py — re-apply fixed graders to a finished run without spending a token.
  • lab/ab_run.sh — strips the provider extra_body.reasoning_effort pins for the run and restores the config byte-identically under an EXIT trap (sha256 verified). Without it, "high" measures low twice.
  • lab/RESULTS.md — the run, and what it does and does not show.

Result

effort pass med reason tok med total tok med tool calls med sec
low 16/16 3 326 62 498 5.5 133.9
high 16/16 4 101 87 692 7.0 129.1

High: +68 % reasoning tokens, +49 % output, +17 % total, +21 % tool calls, no accuracy delta. The suite is saturated for this model, so it cannot yet show a quality gain — the honest read is recorded in RESULTS.md rather than dressed up.

Notes for review

  • The first report read low 88 %/high 81 %; five of those six FAILs were my grader bugs (negative constraints punishing answers that quote the wrong form while correcting it). Fixed, with selftest coverage, then re-graded from stored answers — both arms are 16/16.
  • go_bounded_pool is toolchain-gated: reported as skipped (not failed) when go is absent, excluded from the pass rate.
  • backend/tests 172 passed; lab/selftest.py 16 tasks, 0 problems.
## What A lab layer on top of the fork that answers *"does this model, at this effort, actually do our fleet's work?"* with mechanical grading instead of keyword matching, plus the first low-vs-high run of `deepseek-v4.1-flash`. - `suites/nix-fleet-lab.json` — 17 tasks mined from nix-config history (activation restart semantics, stage-1 closures, wg-quick oneshot restarts, pipefail SIGPIPE, silent unit Conditions, deploy-gate exit 77, Python/Go coding tasks, CI fork secrets + base drift, module-system recursion). Each cites the commit that fixed it. - `backend/engine/graders.py` — `contains_all` / `contains_any` / `regex` / `exec` / `json_block`, replacing `pass_keywords`. `exec` writes hidden tests and runs them, so a coding task grades the file the model wrote. - `lab/run.py` — one suite × N efforts × R repeats → JSONL + Markdown report that quotes every failure verbatim; per-run reasoning tokens / API calls / tool calls read from the Hermes state DB. - `lab/selftest.py` — for each task a reference answer that must PASS, a fluent-wrong one that must FAIL, and regression `good2` answers that quote the anti-pattern. - `lab/regrade.py` — re-apply fixed graders to a finished run without spending a token. - `lab/ab_run.sh` — strips the provider `extra_body.reasoning_effort` pins for the run and restores the config byte-identically under an EXIT trap (sha256 verified). Without it, "high" measures low twice. - `lab/RESULTS.md` — the run, and what it does and does not show. ## Result | effort | pass | med reason tok | med total tok | med tool calls | med sec | |---|---|---|---|---|---| | low | 16/16 | 3 326 | 62 498 | 5.5 | 133.9 | | high | 16/16 | 4 101 | 87 692 | 7.0 | 129.1 | High: **+68 % reasoning tokens, +49 % output, +17 % total, +21 % tool calls, no accuracy delta.** The suite is saturated for this model, so it cannot yet show a quality gain — the honest read is recorded in RESULTS.md rather than dressed up. ## Notes for review - The first report read low 88 %/high 81 %; five of those six FAILs were my grader bugs (negative constraints punishing answers that quote the wrong form while correcting it). Fixed, with selftest coverage, then re-graded from stored answers — both arms are 16/16. - `go_bounded_pool` is toolchain-gated: reported as **skipped** (not failed) when `go` is absent, excluded from the pass rate. - `backend/tests` 172 passed; `lab/selftest.py` 16 tasks, 0 problems.
The upstream suites grade with keyword matching, which cannot tell a correct
answer from one that merely names the right noun. Fleet work needs answers that
are right, so this adds a lab layer whose ground truth is the commit that fixed
the problem.

- suites/nix-fleet-lab.json: 17 tasks mined from nix-config history (activation
  restart semantics, stage-1 closures, wg-quick oneshot restarts, pipefail
  SIGPIPE, silent unit Conditions, deploy-gate exit 77, Python/Go coding tasks,
  CI fork secrets and base drift, module-system recursion). Every task cites the
  commit that fixed it.
- backend/engine/graders.py: mechanical graders (contains_all, contains_any,
  regex, exec, json_block) replacing pass_keywords. exec writes hidden tests and
  runs them, so a coding task grades the file the model actually wrote.
- lab/run.py: one suite x N efforts x R repeats, JSONL + a Markdown report that
  quotes every failure verbatim. Reads per-session reasoning tokens, API calls
  and tool calls from the Hermes state DB, so "thought harder" and "looped more"
  are separable.
- lab/selftest.py: for every task a reference answer that must PASS and a
  fluent-but-wrong answer that must FAIL. It already caught a misspelled grader
  needle that would have failed every correct answer.
- lab/ab_run.sh: strips the provider extra_body.reasoning_effort pins for the
  duration of a run and restores the config from a byte-identical backup with a
  sha256 check on EXIT/INT/TERM. Without this, a high run measures low twice:
  the pin is merged beside the CLI's --reasoning field and the route obeys it.

The runner also refuses to run against a pinned provider (preflight) and reports
a task whose toolchain is missing as skipped, not failed.
The first full low-vs-high run reported low 88% / high 81%. Five of those six
FAILs were grader bugs and four hit correct answers:

- `none: ["\\${arr[@]}"]` failed both arms for quoting the wrong form while
  explaining it is wrong. A correct answer must be able to name the mistake.
- Same pattern on lib.mkDefault: the model quoted `default = lib.mkDefault false`
  inside its own correction and was penalised for it.
- any_of phrasing lists missed correct wording ("the initrd carries its own
  /nix/store tree", "a store path is a name, not a guarantee").
- The Condition task demanded findmnt; the model proposed Assert* + ExecStartPre.

Negative constraints removed where a correct answer legitimately quotes the
anti-pattern, any_of broadened, and the selftest gained `good2` regression
answers that quote the wrong form (it now fails a grader that punishes a
phrasing instead of a mistake).

lab/regrade.py re-applies the current graders to a finished run's stored answers
and its preserved work dirs, so a ruler fix costs zero model calls. After the
regrade both efforts are 16/16.

lab/RESULTS.md records what the run showed: high spends +68% reasoning tokens,
+49% output, +17% total and +21% tool calls for no accuracy delta, because the
suite is saturated. It also records that this model's own answer disputed the
commit behind one task's premise (ConditionPathIsMountPoint=/ succeeds on
systemd 261.2 on vpn) -- confirmed, so the task now grades the field and the
replacement rather than the disputed cause.
hermes merged commit f857c8e3aa into main 2026-11-14 22:50:14 -06:00
hermes deleted branch nix-fleet-lab 2026-11-14 22:50:15 -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!4
No description provided.