feat: wire BUGGIFY_CONFIG into all DST subsystems for GEPA optimizer#16
Open
feat: wire BUGGIFY_CONFIG into all DST subsystems for GEPA optimizer#16
Conversation
The DST optimizer previously only exercised process.crash (1 of 32 fault knobs) because each DST subsystem had its own isolated config. This wires BUGGIFY_CONFIG env var into all 4 subsystems so the GA can tune all 32 parameters with meaningful gradient signal. Rust changes: - SimulatedStoreConfig::from_env_or_default() reads object_store.* keys (8 params) - SimulatedWalStoreConfig::from_env_or_default() reads disk.* keys (5 params) - CRDTDSTConfig::from_env_or_default(seed) reads replication.* keys (2 params) - FaultConfig::from_env_or_default() + parse_config_string() for env var parsing - test_env_config_streaming/wal/crdt emit GEPA_* structured output Python changes: - CargoDstEvaluator runs all 4 test targets and aggregates fitness - Per-subsystem result parsing (StreamingResult, WalResult, CrdtResult) - Equal-weight fitness: 0.25 * crash + 0.25 * streaming + 0.25 * wal + 0.25 * crdt Verified with global_multiplier=2.0: - Streaming: PUT failures 2→18, GET failures 6→20 - WAL: write failures 2→79, sync failures 0→20, disk full 0→18 - CRDT: message drops 67→914 - All invariants hold (0 violations across all subsystems) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
BUGGIFY_CONFIGenv var into all 4 DST subsystems so the GEPA optimizer can tune all 32 fault parameters with meaningful gradient signalprocess.crash(1/32 knobs) had any effect on optimizer fitness — now all object store, disk, and replication fault knobs are exercisedChanges
Rust — 3 new
from_env_or_default()methodsSimulatedStoreConfigobject_store.*SimulatedWalStoreConfigdisk.*CRDTDSTConfigreplication.*Rust — 3 new GEPA optimizer test entry points
streaming_dst_testtest_env_config_streamingGEPA_STREAMING_*wal_dst_testtest_env_config_walGEPA_WAL_*crdt_dst_testtest_env_config_crdtGEPA_CRDT_*Python — multi-target
CargoDstEvaluatorRuns all 4 targets, aggregates fitness as equal-weight subscores.
Verification
With
global_multiplier=2.0:All 40 existing DST tests pass with zero regressions.
Test plan
cargo test --release --test streaming_dst_test(12 pass)cargo test --release --test wal_dst_test(6 pass)cargo test --release --test crdt_dst_test(16 pass)cargo test --release --test dst_batch_verification(6 pass)cargo clippy --release -p redis-sim -- -D warnings(0 warnings)BUGGIFY_CONFIGenv var across all 3 new tests🤖 Generated with Claude Code