Skip to content

feat(performance): add an optional holdout harness to /performance:climb, off by default #8648

Description

@kyle-sexton

Refs: #7591
Refs: #7555
Decision: #7555 (comment)

Agent Brief

Type: Feature
Summary: /performance:climb takes an optional holdout harness, off by default: measured only at the start and the end of a run, never read by the keep decision, so the report says whether the kept gain held on inputs the attempts never saw.

Problem: A hill climb keeps whatever raises its own score, so it can tune the code to the benchmark it is measured on. Nothing in climb checks that a kept gain carries over to other inputs.

Current behavior:

  • plugins/performance/skills/climb/SKILL.md:25-35 takes three inputs: a goal, one harness frozen by /performance:snapshot, a clean checkout. No holdout input exists (no match for holdout under plugins/performance/).
  • Each attempt is judged by climb_log.py decide --rule keep-rule.json --before --after (SKILL.md:77) on the one harness. "When the run ends" (SKILL.md:102-114) reports the last kept value against the target only.

Desired behavior:

  • Inputs gain an optional fourth item: a holdout harness, a second command /performance:snapshot froze, printing the same three numbers on inputs the main harness does not use. Absent means off, and the run behaves exactly as today.
  • When given: record its command beside keep-rule.json at setup; measure it once in each worktree at the starting measurement; never run or read it during attempts; at run end, measure it on the last kept commit and on the start commit, apply the same keep rule to those two numbers, and report holdout: held or holdout: did not hold with both numbers. A gain that did not hold is still reported as the climb's result; the holdout informs, it does not revert.
  • The hypothesis step never reads holdout output.

Key interfaces:

  • plugins/performance/skills/climb/SKILL.md (Inputs, Set up, When the run ends, Finish).
  • plugins/performance/skills/climb/evals/evals.json.

Clarifications

Known call, 2026-10-20. Each open point and its answer:

  • Snapshot needs no change. Freezing is a procedure plus one report line, Frozen: <harness command> @ <sha> discriminate: exit <0|1|2> counts: errors=<n> work=<n> (plugins/performance/skills/snapshot/SKILL.md:160-168). Running that step on the holdout command adds a second Frozen: line to the same baseline report. Climb's Inputs item 4 requires that second line with discriminate: exit 0, worded like the main-harness item.
  • Where the holdout command is recorded. Not in keep-rule.json: decide refuses any rule whose keys are not exactly counter, direction, gain_floor (climb/scripts/climb_log.py:32, :109-111). Write <slice>/holdout.json (name: judgment) in the same memory slice (SKILL.md:39-41), holding the holdout's Frozen: command and sha. Like keep-rule.json, it is never edited during the run (SKILL.md:45-46). The agent reads it; no script parses it.
  • No climb_log.py change. decide --rule <path> --before <n> --after <n> prints kept or reverted from the rule and the two numbers only (climb_log.py:134). At the end call it with --before <holdout on start sha> --after <holdout on last kept sha>: kept reports held, reverted reports did not hold. As in step 7.1 (SKILL.md:79-80), an error count that rose or a work count that differs reports did not hold whatever decide prints. A simplification-only run (kept under step 7.3, SKILL.md:82-85) reports whatever decide prints; the holdout informs and never reverts (judgment). The holdout uses the main keep rule's gain_floor, as the Brief's "same keep rule" says.
  • Starting measurement. A stability check only, mirroring set-up step 4: counters agree, error counts zero, work counts match, or the run stops. Its number is never compared at the end (SKILL.md:75-76: "Never compare against a number stored from an earlier attempt").
  • End-of-run measurement and its place. At run end both worktrees sit at the last kept sha (SKILL.md:88-91). Run git -C <baseline-path> checkout --detach <start-sha>, then measure the holdout in both worktrees as step 6 measures (SKILL.md:72-76). This happens before ## Finish step 1 removes the worktrees (SKILL.md:136-141). If the last kept sha equals the start sha, skip it and report holdout: not run (nothing kept) (judgment).
  • Where the line prints. "When the run ends" (SKILL.md:102-114) is a table of stop conditions; the report is the block in ## Finish (SKILL.md:145-154). Add one Holdout: line there with the verdict and both numbers. With no holdout the line is omitted, so the report is byte-for-byte as today.
  • Keeping it out of attempts. Three additions: the step 3 rule "Never edit the harness files" also covers the holdout harness; holdout numbers never go into log.tsv (the append fields are fixed, climb_log.py:19-29), so show, which the hypothesis step reads, never sees them; the absolute-path Gotcha applies to the holdout command too.
  • Evals. climb/evals/evals.json has 7 cases with id, name, prompt, expected_output, files ([]), expectations. Add ids 8 and 9.
  • CI. With no climb_log.py change, test-python does not run for this PR; that Done-when line is dropped.
  • Fragment. scripts/new-changelog-fragment.sh performance minor.

Done when:

  • The diff adds the optional holdout input, its setup line (holdout.json), its end-of-run measurement before ## Finish step 1 and the Holdout: report line to SKILL.md, and states that absent means off (read from the diff).
  • The diff does not change climb_log.py or keep-rule.json's three keys (read from the diff).
  • plugins/skill-quality/scripts/check-evals-quality.sh plugins/performance/skills/climb/evals/evals.json exits 0, and the set holds two new cases: a run with no holdout behaves as before and prints no holdout line; a run with one measures it only at start and end and reports held or did not hold.
  • scripts/check-changelog-fragments.sh --check passes, with one minor fragment for performance.
  • CI's check-skills passes on the PR (a PR check; this run does not run it).

Out of scope:

  • /performance:snapshot changes beyond what freezing a second command already allows.
  • LLM eval-set hill climbs (/claude-api hillclimb).
  • A separate noise floor for the holdout; the same keep rule applies.

Origin:

  • Hill-climbing against a score: hers (Lauren, stream 15:12-19:24).
  • Optional holdout, off by default: ours (GUIDE K30; ALIGNMENT D5), confirmed by the owner 2026-10-20.

Do not run with: none.

Size Small, Complexity Medium, Uncertainty Known.


Slice of #7591 (Phase 23, other plugins), filed from the owner's 2026-10-20 disposition round.

Activity

  1. added
    status: ready
    on Oct 20, 2026
  2. added
    agent-ready
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readystatus: ready

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions