Repository navigation
Conversation
This was referenced Oct 8, 2026
Contributor
Coverage report (agent_pack)Click to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||||||||
sjrl
marked this pull request as draft
October 8, 2026 07:43
Contributor
Author
|
@julian-risch sorry meant to be a draft PR |
sjrl
force-pushed
the
feat/harness-optimization-experiment
branch
from
October 15, 2026 12:42
9632d65 to
2aa3740
Compare
… log collector comments
…s' util.py and trim the retrieval example
…-only and fingerprint evaluators with to_dict
sjrl
force-pushed
the
feat/harness-optimization-experiment
branch
from
October 20, 2026 09:37
2aa3740 to
79533c2
Compare
…s and eval context ID
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issues
Proposed Changes:
Second part of the harness optimization work: the loop that runs the optimizer agent from #4037 over a labelled evaluation set.
HarnessOptimizationExperiment(reference, evaluator, eval_cases, prices, objectives, journal, optimizer_*, ...)builds its own optimizer agent from its evaluator and the loader that matches the reference.run()measures the reference, then for up tomax_iterationsturns proposes a candidate, measures, prices and gates it. Each turn starts from the best candidate so far.ExperimentResult: everyCandidateEvaluation, the gate failures, the optimizer's own usage and cost, and anExperimentRecommendationwhen a candidate beats the reference.ExperimentJournal, and each run writes its YAML artifacts to its own directory.on_baselineandon_candidatereport progress.retrieval_pipeline_optimization.pyruns a full experiment on a retrieval pipeline.How did you test it?
Unit tests in
tests/optimization/test_experiment.pywith scripted optimizer models.hatch run test:unit,hatch run test:typesandhatch run fmt-checkpass locally.Ran the new example end to end on the MultiHopRAG corpus (needs
OPENAI_API_KEY):I'd recommend starting the review with
examples/retrieval_pipeline_optimization.py. It shows how a reference pipeline, an evaluator, eval cases and objectives come together inHarnessOptimizationExperiment, and prints each candidate as it is measured.Notes for the reviewer
main, which now has the optimizer agent from feat: Add harness optimizer agent and its configuration editing tools #4037.Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:.