Repository navigation
Conversation
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.
Run the original circle-packing and TSP
src/run_evolution.pyentrypoints through the local AlphaEvolve facade. The new opt-in walkthrough CLI stages byte-identical copies ofsrc/andinstructions.md, loads relative helpers, and swaps only imported client/experiment factories and configuration globals before calling the upstreammain().The endpoint/model are explicit. The default is seed-only;
--evolveopts into one generation attempt, with an optional positive--iterations. Only a named--api-key-envsupplies credentials; otherwise a local placeholder is used without ambient-key fallback. Source.env*and bytecode caches are not copied,dotenv.load_dotenvis disabled during import, and temporary configuration environment changes are restored. Selected OE connection/budget/output options take precedence over same-named upstream constructor options.SDK aliases and temporary package registrations are removed before
main()so evaluator callables serialize by value to workers. Reports run against staged sources, and the upstream checkout stays untouched. An explicit output directory must be new and outside the example; it preserves sources, OE output and upstream report artifacts, including partial output on failure. Otherwise the temporary run is cleaned up. A main that returns without a completed local experiment raises an error.Validation:
main()at revision34cd919193945c6dc81053f9af594031b54f41a8, each seed-only and with one scripted proposal through the real OE controller/worker. Both original and staged source hashes stayed unchanged. Google SDK imports were blocked, temporary aliases were cleaned up, and guarded socket/HTTP/credential-lookup attempts were zero. No real model or managed-service requests were made.matplotlib>=3.9.1,<3.11for the upstream plot helper's legacycm.get_cmapcall, removed in Matplotlib 3.11; no plotting code is rewritten or patched.Continues #468 without closing it. This example supports only circle packing and TSP; signal processing's cloud-specific query/controller calls remain a follow-up. The existing facade still exposes only its best result, so upstream history plots and list counts are not complete evaluation statistics. Budgets count OE generation attempts; seed scoring, retries and report-time scoring are additional. Trusted import/evaluation/report code runs with normal process privileges and no added sandbox. Use a fresh, single-threaded main process; dynamic relative imports after initial loading are outside this reviewed subset. No core OE contracts or base dependencies change.