lab: put the PROFILE on the axis — --profile, trajectory metrics, input fixtures #7

Merged
hermes merged 1 commit from kb/NCFGP-1851-profile-axis into main 2026-11-20 19:55:19 -06:00
Collaborator

Card nix-config-private#1851 (rsi-g1b).

lab/run.py now accepts --profile, records the profile per row (and reads it back from sessions.profile_name), derives trajectory metrics (turns, first_correct_action_turn) from the session transcript, plants task input fixtures, and carries two profile-axis tasks with executable graders + canaries.

Before this, run_one() hard-coded HERMES_HOME=~/.hermes, so a caller that pointed HERMES_HOME at a profile home was silently overridden and every arm measured the ambient profile.

Measured smoke on vpn: --profile coding -> profile=coding session_profile=coding pass=True turns=6 first_correct_action_turn=1 on the gate task, and pass=True turns=10 first_correct_action_turn=1 on the log task.

Card nix-config-private#1851 (rsi-g1b). `lab/run.py` now accepts `--profile`, records the profile per row (and reads it back from `sessions.profile_name`), derives trajectory metrics (`turns`, `first_correct_action_turn`) from the session transcript, plants task input fixtures, and carries two profile-axis tasks with executable graders + canaries. Before this, `run_one()` hard-coded `HERMES_HOME=~/.hermes`, so a caller that pointed HERMES_HOME at a profile home was silently overridden and every arm measured the ambient profile. Measured smoke on vpn: `--profile coding` -> `profile=coding session_profile=coding pass=True turns=6 first_correct_action_turn=1` on the gate task, and `pass=True turns=10 first_correct_action_turn=1` on the log task.
The bench varies model and reasoning effort; the thing the fleet actually edits
is the profile (route, doctrine, skills, toolsets, memory), and until now a run
could not select one. run_one() hard-coded HERMES_HOME=~/.hermes, so every arm
measured the ambient profile no matter what the caller set.

* --profile <name> selects <base>/profiles/<name> (or the base home for
  'default') by pointing the child's HERMES_HOME at it; the base comes from
  HERMES_HOME_BASE so a caller can already be running inside a profile.
* per-row profile + session_profile, the latter read back from Hermes' own
  sessions.profile_name — the row proves which profile executed it.
* trajectory metrics from the session transcript: turns and
  first_correct_action_turn (the first assistant turn whose tool call names the
  task's declared authoritative artefact). Two runs can both pass while one
  read the failing log at turn 1 and the other at turn 12.
* input fixtures: task 'files' are planted in the workdir before the run
  (grader.files is grader scratch, written at grade time), which is what makes
  an 'authoritative artefact' exist to be found.
* two profile-axis tasks with executable graders and canaries: a health gate
  that exits 0 for a down unit, and a deploy log whose unit/exit/cause only
  appear in the log.
* report: med turns, med first-correct-action, and the profile in the header.
hermes merged commit c9e4f8d7c8 into main 2026-11-20 19:55:19 -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!7
No description provided.