This repository was archived by the owner on Apr 2, 2026. It is now read-only.
refactor(research): replace local strategy compilation with rara-strategies CLI (#189)#190
Merged
refactor(research): replace local strategy compilation with rara-strategies CLI (#189)#190
Conversation
…tegies CLI (#189) - Delete `crates/rara-strategy-api` (v1), depend on rara-strategies' `strategy-api` (v2) - Rewrite `compiler.rs` from local `cargo build` to `rara-strategy build` CLI wrapper - Update `StrategyHandle` trait: `Signal` → `StrategyOutput`, remove `risk_levels()` - Update `wasm_executor.rs`: remove `wasm_risk_levels()`, parse `StrategyOutput` - Update `signal_loop.rs`: score-based signal interpretation (score > threshold = buy) - Update `strategy_promoter.rs`: remove compiler dep, load artifact from store - Update `strategy_coder.rs`: LLM prompts target v2 API format - Delete `strategies/template/` directory (templates now in rara-strategies) Closes #189 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Switch strategy-api from local path to HTTPS git dependency pointing at the now-public rararulab/rara-strategies repository. Closes #189 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
rara-strategy-apiv1 crate, depend on rara-strategies'strategy-apiv2compiler.rs: localcargo build --target wasm32-wasip1→rara-strategy buildCLI wrapperSignal/RiskLevels→StrategyOutput { score, factors }strategies/template/(templates now live in rara-strategies repo)Key Changes
StrategyHandle::on_candles()returnsStrategyOutputinstead ofSignal;risk_levels()removedStrategyCompilernow shells out torara-strategy buildCLI, writes code to scratch strategy in rara-strategies repoStrategyStoredirectlyscore > 0.1= buy,< -0.1= sell)Test plan
cargo check— zero warningscargo test— all passed (11 tests)cargo clippy --all-targets --all-features -- -D warnings— cleanCloses #189
🤖 Generated with Claude Code