Skip to content

fix(improvement): analyze baseline traces before generation 0 so single-generation runs propose with trace context#334

Merged
drewstone merged 1 commit into
mainfrom
fix/baseline-analysis-gen0
Jul 9, 2026
Merged

fix(improvement): analyze baseline traces before generation 0 so single-generation runs propose with trace context#334
drewstone merged 1 commit into
mainfrom
fix/baseline-analysis-gen0

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

The gap

analyzeGeneration only fired between generations, so a run with generations=1 proposed blind: baseline traces existed, but no analysis of them ever reached the proposer.

The fix

One analyzeGeneration call immediately after the baseline eval, recorded under a gen -1 convention so it is distinct from between-generation analyses. Guarded no-op when there is no producer or no baseline traces, so nothing changes for configurations that cannot use it.

Tests

43/43 passing across the two touched suites (tests/campaign/presets.test.ts, tests/contract-self-improve.test.ts), including three new tests covering the baseline analysis call, the gen -1 convention, and the guarded no-op.

🤖 Generated with Claude Code

…le-generation runs propose with trace context
@drewstone drewstone merged commit 9c7fc30 into main Jul 9, 2026
1 check passed
@drewstone drewstone deleted the fix/baseline-analysis-gen0 branch July 9, 2026 21:16
drewstone added a commit that referenced this pull request Jul 9, 2026
* fix(campaign): export composite proposer

* chore(release): lock python client to 0.110.1

* fix(improvement): analyze baseline traces before generation 0 so single-generation runs propose with trace context (#334)

* fix(campaign): export composite proposer

* chore(release): lock python client to 0.110.1

* fix(campaign): align composite proposer docs and release checks

* docs(campaign): distinguish proposer composition modes

* style(release): align version check formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant