Feature: Artifact side channel#52
Merged
codelion merged 6 commits intoalgorithmicsuperintelligence:mainfrom Jun 9, 2025
Merged
Feature: Artifact side channel#52codelion merged 6 commits intoalgorithmicsuperintelligence:mainfrom
codelion merged 6 commits intoalgorithmicsuperintelligence:mainfrom
Conversation
Member
|
This PR addresses #37 as well I believe. |
Member
|
Can you please update from main, we merged a couple of PRs that were already in testing. |
Contributor
Author
|
It might be good to document the convention for artifact names? For eg: |
shubham3-ucb
pushed a commit
to mert-cemri/autoevolve-dev
that referenced
this pull request
Nov 26, 2025
…-artifact-side-channel Feature: Artifact side channel
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.
Why
AlphaEvolve injects “rendered evaluation results – usually a program, the result of executing that program, and the scores assigned by the evaluate function” into every prompt, arguing that rich execution feedback speeds convergence.
OpenEvolve presently forwards only the metrics dictionary with numeric values, so LLMs never see build logs, failing-test traces, perf profiles or any other output that may be useful.
In an example I'm currently experimenting with I used this to pass formal model (TLA+) check output and memory profiling results to the LLM. (This is currently work in progress and not included in this PR, so I added the circle packing example with slightly updated evaluator to show how artifacts work).
What’s in this PR
EvaluationResultdataclass — retains the original metrics dict and adds an optionalartifactsfield for text / binary payloads.artifacts_jsoncolumn; larger blobs are written underartifact_dir/on disk and referenced from the DB.{artifacts}; the sampler injects sanitized, size-capped content so the LLM sees exact failure text without blowing context.ENABLE_ARTIFACTS,max_artifact_bytes, and base-path knobs let users toggle or tune the feature with zero code changes.How it works
Evaluator returns
DB stores metrics + artifact blob.
Prompt sampler tacks on a block like
giving the LLM concrete tokens to fix next round while selection logic still ranks on pure floats.
Impact