Skip to content

feat(headless): evaluation discipline for prompt/harness evolution — rationale and the budget-matched sampling-baseline slice #1245

Closed

Description

@Astro-Han

Why this issue exists

Two sources frame the problem:

  • Rethinking the Evaluation of Harness Evolution for Agents (arXiv 2607.12227): under matched feedback and inference budgets on Terminal-Bench 2.1, harness evolution loses to parallel sampling on pass@1 (75.8 vs 86.0); its gains concentrate in pass@k rather than pass@1; the evolved harness transfers only +0.6 to held-out tasks. Most reported harness-evolution gains are repeated sampling plus adaptation to the search set.
  • Lilian Weng, Harness Engineering for Self-Improvement (2026-07): the vision case for harness evolution as the near-term RSI path — but its own cautionary notes (evaluator outside the loop, reward hacking, STOP degrading on weak models) anticipate the same failure modes.

A harness/prompt-evolution claim has two counterfeit sources, and an honest loop must exclude both:

  1. Bought by compute — the search spends K× the inference budget; spending the same budget on parallel samples of the un-evolved harness with verifier selection buys comparable gains. Excluded only by a budget-matched sampling baseline arm with pass@1 as the primary metric (gains visible only in pass@k are sampling effects).
  2. Bought by overfitting — search and evaluation share the same task set. Excluded only by a held-out split.

Internal instance: #619's D2 audit — keep=1 artifacts produced under noiseBand = 0, where a single-task net change sufficed to keep. That is counterfeit source 1 seen from the inside.

What Maka already gets right

  • Pass@1 (official verifier) is the primary metric in harness-ab reports; token economy is diagnostic only.
  • protectedPaths restores grading files before scoring — the evaluator sits outside the agent's reach.
  • Oracle evidence is advisory; it never changes task selection or acceptance.
  • The semantic-compaction A/B lifecycle refuses to advance unless compaction actually activated — tasks must exercise the harness component under test (the paper's "headroom" condition).

Gaps

  1. No budget-matched sampling-baseline arm in prompt-optimization/RSI evaluation → this issue's slice
  2. No standardized held-out task split for final claims (partially covered by feat(headless): adopt three Self-Harness protocol details in the RSI loop — addressability filter, unified audit schema, failure-signature clustering #619's powered keep profile) → follow-up issue

Sequencing across issues

The three issues are deliberately kept separate rather than merged: #619 has active external implementation claims, and the layers have different time horizons.

This issue's slice: budget-matched parallel-sampling baseline arm

Add a sampling-baseline arm to prompt-optimization evaluation:

  • Each round, spend a budget equal to the candidate's evaluation budget on parallel samples of the current kept prompt, with identical verifier feedback and selection.
  • A keep requires beating the sampling baseline, not only reference + noise band.
  • Pass@1 stays the primary metric; pass@k is reported separately as a diagnostic.
  • Both arms are recorded in the immutable manifest/WAL so budget matching is auditable and replay-deterministic.
flowchart TD
    A["kept prompt h(t)"] --> B["proposer: candidate prompt h'"]
    A --> C["sampling arm (NEW)<br/>K parallel samples of h(t)<br/>same tasks, same verifier selection"]
    B --> D["candidate arm<br/>evaluate h' on held-in tasks<br/>same budget K, same verifier feedback"]
    C --> G{"acceptance gate"}
    D --> G
    G -->|"all checks pass"| K["keep: record in WAL/manifest<br/>h(t+1) = h'"]
    G -->|"any check fails"| R["reject: log only<br/>h(t+1) = h(t)"]
Loading

Gate checks:

  1. h' beats reference + noise band (existing)
  2. h' beats the sampling arm (new — removes repeated-sampling gains)
  3. held-out non-regression (existing sweep)
  4. reward-hack scan clean (existing; see feat(headless): adopt three Self-Harness protocol details in the RSI loop — addressability filter, unified audit schema, failure-signature clustering #619 D3)

Acceptance criteria

Out of scope

  • Standardized held-out task split (follow-up issue).
  • Model-tier-dependent harness ROI stratification (see Weng's summary of Lin et al. 2026: harness benefit is non-monotonic, mid-tier models benefit most) — recorded as guidance for future A/B reporting, no deliverable here.

Related

Activity

  1. added
    enhancement
    on Jul 19, 2026
  2. changed the title [-]feat(headless): add a budget-matched parallel-sampling baseline arm to prompt-optimization/RSI evaluation[/-] [+]feat(headless): evaluation discipline for prompt/harness evolution — rationale and the budget-matched sampling-baseline slice[/+] on Jul 19, 2026
  3. Nyvo-io commented on Jul 20, 2026

    @Nyvo-io
    Contributor

    I would like to claim #1245.

    Proposed scope:

    • audit the existing prompt-optimization budget, manifest, WAL, verifier, and acceptance-policy flow before changing the gate;
    • add a budget-matched parallel-sampling arm using the current kept prompt, the same evaluation slice, verifier feedback, and an explicitly recorded budget;
    • persist the sampling-arm configuration and results in the immutable run manifest/WAL so replay and budget matching are auditable;
    • require a candidate to beat both the existing reference-plus-noise-band gate and the sampling baseline, while keeping pass@1 authoritative and pass@k diagnostic;
    • add focused tests for budget equivalence, rejection when the candidate only beats the reference, manifest/WAL replay determinism, and composition with the powered keep profile from feat(headless): adopt three Self-Harness protocol details in the RSI loop — addressability filter, unified audit schema, failure-signature clustering #619.

    I will keep standardized held-out split work, model-tier ROI analysis, full harness mutation, and unrelated #619 changes out of scope. I will first wait for assignment and maintainer confirmation before creating a branch or starting implementation.

  4. Astro-Han commented on Jul 20, 2026

    @Astro-Han
    ContributorAuthor

    @Nyvo-io Assigned!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions