Commit 4bc6937
[skill] evaluation: stop GDPVal leaking secrets to the log; fix the fake canary
Two findings from review, both confirmed against a real run.
1. Secret leak. The task `command:` opens with `set -ex`, and `set -x` traces
commands AFTER expansion -- so the `ng_prepare_benchmark` trace line wrote
$HF_TOKEN, $INFERENCE_API_KEY and $TAVILY_API_KEY in plaintext into the eval
log, which lives on shared FS and is uploaded to MLflow when
export.mlflow.log_logs is true. Verified in a completed run's client log: the
traced line carries the expanded token, not `$HF_TOKEN`.
Wrap that one call in `set +x` / `set -x`. The rollout call below it was
already safe -- it goes through the quoted heredoc, so its secrets stay
literal until a shell that never sets -x expands them; this call just wasn't
covered by the same pattern.
2. `limit_samples` is inert on the gym path -- the gym does its own data prep and
rollout collection, so the launcher-level limiter is ignored and you get the
full 220-task run. This was observed during the validated run but the finding
was lost in the doc-compression pass while the instruction depending on it
survived in three places, so following the documented canary launches the
heaviest benchmark in the suite believing it is a two-task smoke test.
Replaced with the real procedure: launch, then treat the first ~20-30 minutes
as the canary (SIF-sandbox line, judge auth, rollouts flowing), with the
grep commands to check; note stage 1 of multistage as a natural checkpoint.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Chenjie Luo <chenjiel@nvidia.com>1 parent 62fbb10 commit 4bc6937
3 files changed
Lines changed: 32 additions & 11 deletions
File tree
- .agents/skills/evaluation
- recipes
- examples/gym_gdpval
- tasks/aa_gym
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
283 | 285 | | |
284 | 286 | | |
285 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
286 | 295 | | |
| 296 | + | |
287 | 297 | | |
288 | 298 | | |
289 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | | - | |
58 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
59 | 67 | | |
60 | 68 | | |
61 | | - | |
62 | | - | |
| 69 | + | |
| 70 | + | |
63 | 71 | | |
64 | 72 | | |
65 | 73 | | |
| |||
0 commit comments