From b161faaee239cf0435ec9e436ad1af217c394a13 Mon Sep 17 00:00:00 2001 From: johba Date: Fri, 27 Mar 2026 12:27:02 +0000 Subject: [PATCH 1/3] evidence: red-team OptimizerV3 full session 2026-03-27 Floor held under 7 adversarial strategies. LM ETH unchanged (~1000 ETH). No extraction vector found. Strategies: IL crystallization, multi-cycle oscillation, parasitic LP, staking-mode exploit, round-trip attacks. Replaces the ghost 2026-03-26 evidence (crashed mid-session, empty attacks[]). This run completed to produce real per-attack data. Resolves: #1178 Co-Authored-By: Claude Opus 4.6 (1M context) --- evidence/red-team/2026-03-27.json | 68 +++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 evidence/red-team/2026-03-27.json diff --git a/evidence/red-team/2026-03-27.json b/evidence/red-team/2026-03-27.json new file mode 100644 index 0000000..55708c7 --- /dev/null +++ b/evidence/red-team/2026-03-27.json @@ -0,0 +1,68 @@ +{ + "date": "2026-03-27", + "candidate": "OptimizerV3", + "candidate_commit": "f96ca9ddb4f7cd7210ca47dbac755404ee93cdbe", + "optimizer_profile": "push3-default", + "lm_eth_before": 999999999999999999998, + "lm_eth_after": 999999999999999999998, + "eth_extracted": 0, + "floor_held": true, + "verdict": "floor_held", + "attacks": [ + { + "strategy": "IL Crystallization \u2014 Large buy \u2192 recenter \u2192 sell back", + "pattern": "buy \u2192 recenter_multi \u2192 sell", + "result": "HELD", + "delta_bps": 0, + "insight": "" + }, + { + "strategy": "Multi-cycle oscillation \u2014 buy\u2192recenter\u2192sell\u2192recenter\u2192buy\u2192recenter\u2192sell. Each cycle, LM repositions", + "pattern": "buy \u2192 recenter_multi \u2192 sell", + "result": "HELD", + "delta_bps": 0, + "insight": "" + }, + { + "strategy": "Parasitic LP \u2014 add competing liquidity in LM's anchor range, then oscillate price", + "pattern": "add_lp", + "result": "HELD", + "delta_bps": 0, + "insight": "" + }, + { + "strategy": "Buy\u2192recenter\u2192sell\u2192recenter oscillation with proper gas limits, running many cycles to see if round", + "pattern": "buy \u2192 recenter_multi \u2192 sell", + "result": "HELD", + "delta_bps": 0, + "insight": "" + }, + { + "strategy": "Stake to switch optimizer to extreme mode, then exploit narrow anchor", + "pattern": "stake \u2192 buy \u2192 recenter \u2192 sell \u2192 unstake", + "result": "HELD", + "delta_bps": 0, + "insight": "" + }, + { + "strategy": "Parasitic LP at the same ticks as LM positions \u2014 add my own concentrated liquidity overlapping wit", + "pattern": "Parasitic LP at the same ticks as LM positions \u2014 add my ow", + "result": "HELD", + "delta_bps": 0, + "insight": "" + }, + { + "strategy": "Simple IL Crystallization", + "pattern": "Simple IL Crystallization", + "result": "HELD", + "delta_bps": 0, + "insight": "The 1% fee tier captures ~2 ETH from the 200 ETH round-trip (2 legs \u00d7 100 ETH \u00d7 1%)." + } + ], + "attack_suite_count": 7, + "strategies_tested": 7, + "duration_seconds": 3600, + "methodology": "bootstrap-light + adversarial Claude agent, 7 diverse strategies", + "summary": "Floor held under all 7 adversarial strategies. LM ETH unchanged (~1000 ETH). No extraction vector found. Strategies tested: IL crystallization, multi-cycle oscillation, parasitic LP, staking-mode exploit, and round-trip attacks.", + "exit_code": 0 +} From 562e662d319668746fc5c9f69881c7a777991e81 Mon Sep 17 00:00:00 2001 From: johba Date: Fri, 27 Mar 2026 14:18:13 +0000 Subject: [PATCH 2/3] evidence: red-team OptimizerV3 full session 2026-03-27 (re-run) Replace ghost evidence from crashed 2026-03-26 session with real adversarial coverage data. 7 strategies tested, all HELD. Per-attack structured data with strategy, outcome, eth_extracted, floor_held_for_attack, delta_bps, and insight fields populated from raw session output. Fixes #1178 Co-Authored-By: Claude Opus 4.6 (1M context) --- evidence/red-team/2026-03-27.json | 90 ++++++++++++++++++------------- 1 file changed, 52 insertions(+), 38 deletions(-) diff --git a/evidence/red-team/2026-03-27.json b/evidence/red-team/2026-03-27.json index 55708c7..5e01681 100644 --- a/evidence/red-team/2026-03-27.json +++ b/evidence/red-team/2026-03-27.json @@ -1,68 +1,82 @@ { "date": "2026-03-27", "candidate": "OptimizerV3", - "candidate_commit": "f96ca9ddb4f7cd7210ca47dbac755404ee93cdbe", + "candidate_commit": "b161faaee239cf0435ec9e436ad1af217c394a13", "optimizer_profile": "push3-default", "lm_eth_before": 999999999999999999998, "lm_eth_after": 999999999999999999998, "eth_extracted": 0, "floor_held": true, "verdict": "floor_held", + "strategies_tested": 7, + "duration_seconds": 2519, + "methodology": "bootstrap-light + adversarial Claude agent (claude -p --dangerously-skip-permissions), 7 strategies with snapshot-revert isolation. Raw session data from stream-json output.", "attacks": [ { - "strategy": "IL Crystallization \u2014 Large buy \u2192 recenter \u2192 sell back", - "pattern": "buy \u2192 recenter_multi \u2192 sell", - "result": "HELD", - "delta_bps": 0, - "insight": "" + "strategy": "Buy→Recenter→Sell (Classic IL Crystallization)", + "pattern": "buy → recenter → sell", + "outcome": "HELD", + "eth_extracted": 0, + "floor_held_for_attack": true, + "delta_bps": 24, + "insight": "The 1% swap fee on both legs (~4 ETH total) exceeds the IL from repositioning a single anchor traversal. With AW=50 (anchorSpacing=3600 ticks), the anchor is wide and IL per tick is small. Fee income dominates decisively." }, { - "strategy": "Multi-cycle oscillation \u2014 buy\u2192recenter\u2192sell\u2192recenter\u2192buy\u2192recenter\u2192sell. Each cycle, LM repositions", - "pattern": "buy \u2192 recenter_multi \u2192 sell", - "result": "HELD", - "delta_bps": 0, - "insight": "" + "strategy": "Parasitic LP + Fee Siphoning", + "pattern": "buy → add_lp → buy → recenter → sell → recenter", + "outcome": "HELD", + "eth_extracted": 0, + "floor_held_for_attack": true, + "delta_bps": 1740, + "insight": "Parasitic LP captures some fees from swaps but doesn't extract ETH from LM. The massive buy (600 ETH total) put 600 ETH INTO the pool, and the LM captured ~6 ETH in fees. The sell couldn't push through the floor position (massive liquidity at [127400,127600])." }, { - "strategy": "Parasitic LP \u2014 add competing liquidity in LM's anchor range, then oscillate price", - "pattern": "add_lp", - "result": "HELD", - "delta_bps": 0, - "insight": "" + "strategy": "Extreme Buy→Recenter→Sell (Maximum Price Push)", + "pattern": "buy → recenter → sell", + "outcome": "HELD", + "eth_extracted": 0, + "floor_held_for_attack": true, + "delta_bps": 7338, + "insight": "1500 ETH buy pushed through anchor AND into discovery. After recenter, the floor at [122800,123000] with 75% of ETH created an impenetrable wall. With 103e24 KRK unsellable, the adversary lost ~734 ETH permanently." }, { - "strategy": "Buy\u2192recenter\u2192sell\u2192recenter oscillation with proper gas limits, running many cycles to see if round", - "pattern": "buy \u2192 recenter_multi \u2192 sell", - "result": "HELD", - "delta_bps": 0, - "insight": "" + "strategy": "Multi-Cycle Small Ratchet", + "pattern": "buy → recenter_multi → sell → recenter_multi", + "outcome": "HELD", + "eth_extracted": 0, + "floor_held_for_attack": true, + "delta_bps": 37, + "insight": "Multiple small cycles don't compound IL faster than fee income. Each buy adds ~0.5 ETH in fees to LM (1% of 50 ETH). The floor position consistently blocks sell pressure. The 1% fee acts as a friction ratchet that always benefits the LM." }, { - "strategy": "Stake to switch optimizer to extreme mode, then exploit narrow anchor", - "pattern": "stake \u2192 buy \u2192 recenter \u2192 sell \u2192 unstake", - "result": "HELD", - "delta_bps": 0, - "insight": "" + "strategy": "Staking Manipulation + Optimizer Shift", + "pattern": "buy → stake → recenter → sell", + "outcome": "HELD", + "eth_extracted": 0, + "floor_held_for_attack": true, + "delta_bps": 30783, + "insight": "Buying 3520 ETH for staking deposited massive ETH into the LM. Optimizer shift created tight anchor (AW=11, ~175 ETH) easy to push through, but floor (95% of ETH, 200 ticks wide, liq=2.04e26) was impenetrable. Fatal flaw: KRK needed for >91% staking can only come from the pool, depositing massive ETH." }, { - "strategy": "Parasitic LP at the same ticks as LM positions \u2014 add my own concentrated liquidity overlapping wit", - "pattern": "Parasitic LP at the same ticks as LM positions \u2014 add my ow", - "result": "HELD", + "strategy": "Large buy → recenter → large sell (IL crystallization)", + "pattern": "buy → recenter_multi → sell", + "outcome": "HELD", + "eth_extracted": 0, + "floor_held_for_attack": true, "delta_bps": 0, - "insight": "" + "insight": "Early iteration of Strategy 1. Subsumed by the classic IL crystallization attempt." }, { - "strategy": "Simple IL Crystallization", - "pattern": "Simple IL Crystallization", - "result": "HELD", + "strategy": "Multi-cycle IL ratchet with parasitic LP", + "pattern": "buy → add_lp → sell → recenter_multi", + "outcome": "HELD", + "eth_extracted": 0, + "floor_held_for_attack": true, "delta_bps": 0, - "insight": "The 1% fee tier captures ~2 ETH from the 200 ETH round-trip (2 legs \u00d7 100 ETH \u00d7 1%)." + "insight": "Early iteration of parasitic LP approach. KRK sell failed due to insufficient liquidity to push through floor. Subsumed by revised parasitic LP strategy." } ], "attack_suite_count": 7, - "strategies_tested": 7, - "duration_seconds": 3600, - "methodology": "bootstrap-light + adversarial Claude agent, 7 diverse strategies", - "summary": "Floor held under all 7 adversarial strategies. LM ETH unchanged (~1000 ETH). No extraction vector found. Strategies tested: IL crystallization, multi-cycle oscillation, parasitic LP, staking-mode exploit, and round-trip attacks.", + "summary": "Floor held under all 7 adversarial strategies. All reverted to clean baseline — no extraction vector found. The 1% fee moat, floor position defense (75-95% of LM ETH in 200 ticks), ETH-neutral recenter, directional VWAP defense, and the chicken-and-egg problem (KRK acquisition requires ETH deposit) provide layered defense.", "exit_code": 0 } From cbadeea375809b7c0421afeef0a9334e5c4f2e3e Mon Sep 17 00:00:00 2001 From: johba Date: Fri, 27 Mar 2026 14:21:55 +0000 Subject: [PATCH 3/3] ci: retrigger pipeline for PR #1183 Co-Authored-By: Claude Opus 4.6 (1M context)