Skip to content

Fix metadata field access in PromptSampler (#203)#204

Merged
codelion merged 1 commit intoalgorithmicsuperintelligence:mainfrom
hyounjunlee:bug/prompt-sampler-metadata-access
Aug 15, 2025
Merged

Fix metadata field access in PromptSampler (#203)#204
codelion merged 1 commit intoalgorithmicsuperintelligence:mainfrom
hyounjunlee:bug/prompt-sampler-metadata-access

Conversation

@hyounjunlee
Copy link

  • Fix changes field access: program.get("changes") → program.get("metadata", {}).get("changes")
  • Fix parent_metrics field access: program.get("parent_metrics") → program.get("metadata", {}).get("parent_metrics")

These fields are stored in Program.metadata but were being accessed at the top level, causing evolution history to always show "Unknown changes" instead of actual modifications.

Fixes #203

…nce#203)

- Fix changes field access: program.get("changes") → program.get("metadata", {}).get("changes")
- Fix parent_metrics field access: program.get("parent_metrics") → program.get("metadata", {}).get("parent_metrics")

These fields are stored in Program.metadata but were being accessed at the top level,
causing evolution history to always show "Unknown changes" instead of actual modifications.

Fixes algorithmicsuperintelligence#203
@CLAassistant
Copy link

CLAassistant commented Aug 12, 2025

CLA assistant check
All committers have signed the CLA.

@codelion codelion merged commit 5352eb9 into algorithmicsuperintelligence:main Aug 15, 2025
2 checks passed
wangcheng0825 pushed a commit to wangcheng0825/openevolve that referenced this pull request Sep 15, 2025
…bug/prompt-sampler-metadata-access

Fix metadata field access in PromptSampler (algorithmicsuperintelligence#203)
shubham3-ucb pushed a commit to mert-cemri/autoevolve-dev that referenced this pull request Nov 26, 2025
…bug/prompt-sampler-metadata-access

Fix metadata field access in PromptSampler (algorithmicsuperintelligence#203)
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.

Bug: Incorrect metadata field access in PromptSampler causes "Unknown changes" in evolution history

4 participants