harb/tools/push3-evolution
johba e230a62e11 fix: feat: LLM seed — Fee Maximizer optimizer (#673) (#696)
Fixes #673

## Changes
Done. Here's a summary of what was implemented:

## Changes

**`tools/push3-evolution/seeds/llm_fee_maximizer.push3`** (new file)
A Push3 optimizer seed implementing the "every trade pays us" philosophy. It reads `percentageStaked` (slot 0) and `averageTaxRate` (slot 1), then branches on two thresholds:
- Staking threshold: 60% (bullish vs. neutral sentiment)
- Tax threshold: 10% of 1e18 (high vs. low swap volume)

Strategy matrix:
| | tax < 10% | tax ≥ 10% |
|---|---|---|
| **staked < 60%** | AS=0.70, AW=60, DD=0.50 | AS=0.80, AW=80, DD=0.60 |
| **staked ≥ 60%** | AS=0.90, AW=40, DD=0.80 | AS=0.95, AW=50, DD=0.90 |

CI is always 0. Anchor share is always ≥ 0.70e18 (capital stays in fee-earning zone). High staking shifts discovery depth up; high tax widens the anchor to capture more swap volume.

**`tools/push3-evolution/seeds/manifest.jsonl`** — new entry for `llm_fee_maximizer.push3` with `origin=llm`.

Transpiled successfully: 48-line Solidity function body, outputs correctly bound to `ci`, `anchorShare`, `anchorWidth`, `discoveryDepth`.

Co-authored-by: openhands <openhands@all-hands.dev>
Reviewed-on: https://codeberg.org/johba/harb/pulls/696
Reviewed-by: review_bot <review_bot@noreply.codeberg.org>
2026-03-13 19:56:39 +01:00
..
revm-evaluator fix: address review findings for gas-limit fitness pressure (#637) 2026-03-13 01:05:37 +00:00
seeds fix: feat: LLM seed — Fee Maximizer optimizer (#673) (#696) 2026-03-13 19:56:39 +01:00
test fix: feat: Push3 evolution — crossover operator (#639) 2026-03-13 05:54:48 +00:00
evolve.sh fix: evolution scoring — 3 bugs made all candidates report fitness=0 (#665) 2026-03-13 10:02:24 +01:00
fitness.sh fix: Evolution pipeline UUPS upgrade + Foundry PATH (#593) 2026-03-12 06:47:35 +00:00
mutate-cli.ts fix: Push3 evolution: selection loop orchestrator (#546) 2026-03-11 20:56:19 +00:00
mutate.ts fix: feat: Push3 evolution — crossover operator (#639) 2026-03-13 05:54:48 +00:00
package-lock.json fix: Push3 evolution: selection loop orchestrator (#546) 2026-03-11 20:56:19 +00:00
package.json fix: Push3 evolution: mutation operators for bytecode programs (#544) 2026-03-11 16:24:24 +00:00
seed-gen-cli.ts fix: address review findings for diverse seed population (#638) 2026-03-13 05:21:05 +00:00
seed-generator.ts fix: address review findings for diverse seed population (#638) 2026-03-13 05:21:05 +00:00
tsconfig.json fix: Push3 evolution: mutation operators for bytecode programs (#544) 2026-03-11 16:24:24 +00:00