You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenEvolve's reverse evaluator and configuration helpers currently need to be
wired together by hand. Add an opt-in export_to_alphaevolve API and python -m openevolve.compat.alphaevolve_bundle command that package an existing
single-file Python seed and synchronous evaluator into a directory with an
explicit local check.
The bundle contains byte-preserved sources, a reverse-adapter entry point, experiment.json, evaluation.json, check.py, installation/integration
instructions and an optional explicitly supplied requirements file. Export
validates inputs without importing or executing the sources, rejects existing
destinations and detectable local-module dependencies, and cleans up its newly
created output on write failures. It reuses the merged config/evaluator helpers,
including explicit model remapping and warnings for omitted OpenEvolve settings.
The check works after moving the bundle and from an unrelated working directory.
It prints the evaluation as JSON, redirects Python-level evaluator stdout to
stderr and returns a nonzero status for adapter-reported failures or ordinary
import/contract errors. Dependencies must be installed in the target environment;
they are not inferred or vendored. Evaluators must capture their own subprocess
output to preserve machine-readable stdout.
Validation:
Full offline unit suite: 791 tests passed, including 20 new bundle tests.
Unchanged function_minimization and circle_packing sources exported through
the CLI, relocated, checked successfully and verified byte for byte.
Exported configs/results validated against the real upstream SDK models, and
each exported callable executed through its actual AlphaEvolveExperiment
evaluator wrapper with a typed AlphaEvolveProgram candidate. SDK source
revision: 674dd5e558e917320c251c085e47fae33e1bbcff.
Network/credential guards around the real-example subprocesses recorded zero
socket/HTTP requests and zero credential lookups. No managed-service run.
Black, isort, Python 3.10 syntax parsing and the CI-pinned Frame scan passed.
Partial follow-up to #468, building on #526 and #527. This deliberately does not
provide a Google client/controller runner, an SDK shim, dependency discovery,
sandboxing or a claim of equivalent search behavior. It adds no base dependencies
and leaves the default evolution path unchanged.
Implemented with AI coding assistance and checked with the tests and real SDK
validation described above.
Both unchanged function_minimization and circle_packing examples pass the relocated local check. The real SDK accepts the generated configuration and evaluation results, including evaluation through its actual experiment wrapper. GitHub unit tests and the Frame security scan are green; the integration job is still running.
This is a minimal, offline-validated slice of #468. The target environment still needs OpenEvolve and evaluator dependencies; managed-service authentication and client/controller execution remain follow-ups. No Google Cloud experiment has been run.
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
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.
OpenEvolve's reverse evaluator and configuration helpers currently need to be
wired together by hand. Add an opt-in
export_to_alphaevolveAPI andpython -m openevolve.compat.alphaevolve_bundlecommand that package an existingsingle-file Python seed and synchronous evaluator into a directory with an
explicit local check.
The bundle contains byte-preserved sources, a reverse-adapter entry point,
experiment.json,evaluation.json,check.py, installation/integrationinstructions and an optional explicitly supplied requirements file. Export
validates inputs without importing or executing the sources, rejects existing
destinations and detectable local-module dependencies, and cleans up its newly
created output on write failures. It reuses the merged config/evaluator helpers,
including explicit model remapping and warnings for omitted OpenEvolve settings.
The check works after moving the bundle and from an unrelated working directory.
It prints the evaluation as JSON, redirects Python-level evaluator stdout to
stderr and returns a nonzero status for adapter-reported failures or ordinary
import/contract errors. Dependencies must be installed in the target environment;
they are not inferred or vendored. Evaluators must capture their own subprocess
output to preserve machine-readable stdout.
Validation:
function_minimizationandcircle_packingsources exported throughthe CLI, relocated, checked successfully and verified byte for byte.
each exported callable executed through its actual
AlphaEvolveExperimentevaluator wrapper with a typed
AlphaEvolveProgramcandidate. SDK sourcerevision:
674dd5e558e917320c251c085e47fae33e1bbcff.socket/HTTP requests and zero credential lookups. No managed-service run.
Partial follow-up to #468, building on #526 and #527. This deliberately does not
provide a Google client/controller runner, an SDK shim, dependency discovery,
sandboxing or a claim of equivalent search behavior. It adds no base dependencies
and leaves the default evolution path unchanged.
Implemented with AI coding assistance and checked with the tests and real SDK
validation described above.