Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

chore(plugin): bump pin to ^2.8.11 + add pairs/adaptive/multi-indicator smoke (#1988)

rUv17986904a514
diff --git a/plugins/ruflo-neural-trader/README.md b/plugins/ruflo-neural-trader/README.md
index dfc2b3c822..8bac443805 100644
--- a/plugins/ruflo-neural-trader/README.md
+++ b/plugins/ruflo-neural-trader/README.md
@@ -10,25 +10,27 @@ Heavy jobs β€” multi-year walk-forward backtests, large Monte-Carlo runs, parame
## Prerequisites
-> βœ… **Fully fixed in `[email protected]`** (shipped 2026-05-14; see [post-mortem gist](https://gist.github.com/ruvnet/a1aca90a5c299d89fa92e905dab11041) and [announcement #1981](https://github.com/ruvnet/ruflo/issues/1981)).
+> βœ… **`neural-trader@^2.8.11`** (shipped 2026-05-14; see [post-mortem gist](https://gist.github.com/ruvnet/a1aca90a5c299d89fa92e905dab11041) and [announcement #1981](https://github.com/ruvnet/ruflo/issues/1981)).
> Resolves four compounding bugs that made the package unusable since v2.5.0:
> 1. Install-hook fork-bomb (#1974 β€” 120 GB RAM on Apple Silicon) β€” fixed in 2.7.2 ([neural-trader#109](https://github.com/ruvnet/neural-trader/pull/109)).
> 2. `require('neural-trader')` always threw `Cannot find module './src/cli/lib/napi-loader-shared'` β€” missing files restored in 2.7.5 ([neural-trader#111](https://github.com/ruvnet/neural-trader/pull/111)).
> 3. `cargo build` aborted on `aarch64-apple-darwin` (`fasthash-sys` x86-only SIMD) β€” placeholder hash replaced with stdlib `DefaultHasher` in 2.7.5.
-> 4. npm tarball claimed 5 platform binaries, shipped 1 β€” `darwin-arm64` + `darwin-x64` added in 2.7.6 (`linux-arm64-gnu` / `win32-x64-msvc` will fill in on the next tag-triggered release).
+> 4. npm tarball claimed 5 platform binaries, shipped 1 β€” `darwin-arm64` + `darwin-x64` added in 2.7.6.
+>
+> The 2.8.x line additionally adds a flag-style CLI dispatcher (`--backtest`, `--signal scan`, `--risk assess`, `--portfolio optimize`, `--regime`, `--train`, `--predict`, `--strategy-create`) running real math (SMA crossover / RSI mean-reversion / pairs z-score / adaptive regime-switching / multi-indicator RSI+MACD+Bollinger) against real Yahoo Finance data via `--live`. Supports `--walk-forward`, `--monte-carlo`, `--symbols A,B,C`, `--benchmark SPY`, `--optimize --param "name:min:max:step"`. The runtime smoke ([scripts/runtime-smoke.sh](scripts/runtime-smoke.sh)) covers 17 documented entry points end-to-end.
```bash
# Recommended β€” keeps --ignore-scripts as defense in depth. The install
# hook is safe in 2.7.2+, but --ignore-scripts protects against any
# future install-script regression on this or transitive packages.
-npm install --ignore-scripts neural-trader@^2.7.6
+npm install --ignore-scripts neural-trader@^2.8.11
```
-| Platform | Native binding in 2.7.6 |
-|----------|------------------------|
+| Platform | Native binding in 2.8.11 |
+|----------|--------------------------|
| `linux-x64-gnu` | βœ… |
-| `darwin-arm64` (Apple Silicon) | βœ… first time ever shipped |
-| `darwin-x64` (Intel Macs) | βœ… first time ever shipped |
+| `darwin-arm64` (Apple Silicon) | βœ… first shipped in 2.7.5 |
+| `darwin-x64` (Intel Macs) | βœ… first shipped in 2.7.6 |
| `linux-arm64-gnu` | ⏳ JS surface works, native calls throw at runtime |
| `win32-x64-msvc` | ⏳ JS surface works, native calls throw at runtime |
diff --git a/plugins/ruflo-neural-trader/scripts/runtime-smoke.sh b/plugins/ruflo-neural-trader/scripts/runtime-smoke.sh
index 9d1d339c74..20a135f77d 100755
--- a/plugins/ruflo-neural-trader/scripts/runtime-smoke.sh
+++ b/plugins/ruflo-neural-trader/scripts/runtime-smoke.sh
@@ -22,7 +22,7 @@ FAILURES=()
# Lock to the version this plugin is pinned against so a global
# npx cache doesn't shadow a stale local install.
-NT_PIN="${NT_PIN:-2.8.9}"
+NT_PIN="${NT_PIN:-2.8.11}"
WORKDIR="$(mktemp -d)"
trap 'rm -rf "$WORKDIR"' EXIT
@@ -109,6 +109,9 @@ assert_field "13. --monte-carlo returns distribution" '.monteCarlo.distribution.
assert_field "14. --optimize returns best Sharpe" '.optimization.best.sharpeRatio' --backtest --symbol AAPL --optimize --param fast_ma:10:20:5
assert_field "15. --signal scan returns β‰₯1 signal" '.signalsCount' --signal scan --symbols AAPL,MSFT
assert_field "16. multi-symbol aggregate" '.aggregate.bestSymbol' --backtest --symbols AAPL,MSFT,GOOGL
+assert_field "17. pairs strategy returns metrics" '.metrics.totalTrades' --backtest --strategy pairs --symbols AAPL,MSFT
+assert_field "18. adaptive strategy picks regime" '.regimePicked' --backtest --strategy adaptive --symbol AAPL
+assert_field "19. multi-indicator strategy runs" '.command' --backtest --strategy multi-indicator --symbol AMZN
echo ""
echo "$PASS passed, $FAIL failed"