Add strategy system to autoloop; ship AlphaEvolve as the first playbook#182
Merged
Add strategy system to autoloop; ship AlphaEvolve as the first playbook#182
Conversation
…ve POC Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/be387cb3-39c7-4120-94fd-b94c74458500 Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add strategy system to autoloop and implement AlphaEvolve
Add strategy system to autoloop; ship AlphaEvolve as the first playbook
Apr 23, 2026
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.
Programs can now opt into specialized per-iteration playbooks that supersede the default analyze/propose/accept/reject loop. Ships AlphaEvolve (MAP-Elites + islands + four operators) as the first concrete strategy, suited to evolving a self-contained artifact toward a scalar fitness.
Opt-in mechanism (agent-prompt only)
.github/workflows/autoloop.mdgets a### Strategy discoverystep at the top of## Iteration Loop. The agent readsprogram.md's## Evolution Strategysection; if it points to a strategy file, the agent follows that file literally (state read, branching, CI gating still apply). If absent, behaviour is unchanged — no regression for coverage-style programs. No scheduler changes.Reusable template —
.autoloop/strategies/alphaevolve/strategy.md— runtime playbook with<CUSTOMIZE: …>markers: 8-step loop (load → pick operator → pick parents → apply → implement → evaluate → update population → fold to default), operator weights with deterministic rut-breaking overrides (3-reject → forced exploration, 5-reject → forced migration), MAP-Elites feature dimensions, population schema with strikethrough-eviction.CUSTOMIZE.md— creator-time guide (when AlphaEvolve fits, copy steps, marker-by-marker guidance, worked example). Not copied into programs.prompts/mutation.md,prompts/crossover.md— operator framing templates.Proof-of-concept —
.autoloop/programs/tsb-perf-evolve/Targets
Series.sortValuesinsrc/core/series.ts. Fitness =tsb_mean_ms / pandas_mean_ms(lower is better;<1.0means tsb wins).program.mdwith the resolved## Evolution Strategypointer block and explicit validity invariants (tests pass, signature unchanged, strict TS, NaN semantics preserved).code/{config.yaml, benchmark.ts, benchmark.py, README.md}— fixed evaluator: 100k float Series with 5% NaN, 5 warmup + 50 measured iterations on each side, JSON output.strategy/alphaevolve.md+strategy/prompts/{mutation,crossover}.md— fully customized: 5 islands (comparison-pairs, indirect typed-array, packed typed-array, radix/non-comparison, hybrid); feature dimensions =storage × algorithm-class; vocabulary and domain knowledge (Bun JIT monomorphization, typed-array allocation costs, NaN partitioning, pandas/NumPy baseline) written in.grep -R "<CUSTOMIZE" .autoloop/programs/tsb-perf-evolve/is empty.Pointer block authors copy into
program.mdOut of scope
Strategy-picker UI/CLI, additional strategies beyond AlphaEvolve, scheduler-level strategy awareness — all explicitly deferred per the issue.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/githubnext/tsessebe/issues/181/usr/bin/curl curl -s REDACTED(http block)/usr/bin/curl curl -sL -H Accept: application/vnd.github.raw+json REDACTED(http block)If you need me to access, download, or install something from one of these locations, you can either: