Feature: Artifact side channel #52
Merged
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