Repository navigation
Closed
Labels
enhancementNew feature or request
Description
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:
- 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).
- 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.
protectedPathsrestores 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
- No budget-matched sampling-baseline arm in prompt-optimization/RSI evaluation → this issue's slice
- 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
- feat(headless): adopt three Self-Harness protocol details in the RSI loop — addressability filter, unified audit schema, failure-signature clustering #619 repairs the existing acceptance gate (defects D1–D4, addressability filtering) — in progress.
- This issue adds the missing control arm.
- feat(harness): add Maka-native AHE-style self-iteration loop #345 (full harness-mutation-surface evolution) stays gated: worth building only after the prompt-only loop demonstrates keeps that beat the sampling baseline on held-out tasks.
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)"]
Gate checks:
h'beats reference + noise band (existing)h'beats the sampling arm (new — removes repeated-sampling gains)- held-out non-regression (existing sweep)
- 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
- A candidate that beats reference + noise band but not the sampling baseline is not recorded as a keep.
- The sampling arm is part of the immutable manifest.
- Composes 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 (zScore wired, non-ceiling held-in slice, held-out sweep).
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
- feat(headless): adopt three Self-Harness protocol details in the RSI loop — addressability filter, unified audit schema, failure-signature clustering #619 — RSI loop protocol; its D2 finding is the internal instance of counterfeit source 1
- feat(harness): add Maka-native AHE-style self-iteration loop #345 — full harness self-iteration; gated behind this issue's discipline being demonstrated
- fix(runtime): RuntimeEvent ledger is recovery-grade (WAL), not source-of-truth — write-path truncation blocks counterfactual replay #615 — trace fidelity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
[-]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[/+]Nyvo-io commentedon Jul 20, 2026
I would like to claim #1245.
Proposed scope:
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.
Astro-Han commentedon Jul 20, 2026
@Nyvo-io Assigned!