Skip to content

Solana-first production: system profile controls workers, Solana performance report - #59

Merged
yonixnetwork merged 1 commit into
mainfrom
claude/yonixalpha-platform-architecture-804nb5
Oct 8, 2026
Merged

yonixnetwork merged 1 commit into
mainfrom
claude/yonixalpha-platform-architecture-804nb5

Conversation

@yonixnetwork

Copy link
Copy Markdown
Owner

What

SYSTEM_PROFILE=SOLANA_ONLY (the default) with COPY_TRADING_ENABLED=false now changes what actually runs on the server, not just what the dashboard shows.

  • Workers
    • data-evm (BSC / Robinhood) and copy-engine are behind the compose profiles evm and copy.
    • scripts/deploy.sh reads .env through scripts/compose-profiles.sh, starts only the profiles that are on, and stops and removes the container of a worker that is off. --remove-orphans alone would leave it running.
    • A disabled worker started by hand only idles, with a "disabled" heartbeat.
  • ML
    • The BSC / Robinhood cycle is skipped, and the skip is recorded with its reason.
    • Frozen validation runs only on the Solana families.
    • Solana ML is unchanged.
  • Copy trading reads SUSPENDED and cannot be resumed from the dashboard (409 COPY_DISABLED).
  • API
    • BSC / Robinhood BUY, SELL of an EVM position, and new EVM copy targets get 409 CHAIN_DISABLED with the reason.
    • New endpoint GET /api/system/profile.
  • System Health
    • New state DISABLED, not counted in the overall state, showing "DISABLED — SOLANA_ONLY MODE".
    • A disabled worker that is still running reads DEGRADED with "run deploy.sh".
    • The BSC, Robinhood, EVM and Copy pages show a banner.
  • Solana performance report (new, read-only)
    • GET /api/analytics/solana-performance?days=N, the Trading > Solana Performance page, and python -m yonixalpha_core.solana_performance.
    • PAPER vs LIVE by stage, hold time, entry quality and exit reason: win rate, average and median win / loss, profit factor, fees, max drawdown and MFE / MAE.
    • Also: missed winners, false positives, and LIVE execution telemetry.
  • Test for the Pump 6005 curve-complete sell, which falls back to PumpSwap.
  • Audit document: docs/SOLANA_FIRST_PRODUCTION_AUDIT.md (22 sections, VERIFIED / NOT VERIFIED / BLOCKED).

Nothing is deleted. Code, tables, history and settings are kept, and the change is reversed by editing .env and redeploying. There is no change to Solana execution, the transaction guard, risk limits or position sizes.

Open EVM paper positions stay frozen while their chain is off. They are paper only, and EVM live is locked.

Tests

  • ruff: clean
  • core: 899 passed
  • api: 179 passed
  • data-solana 10, data-evm 14, copy-engine 18, discovery 18, migration 11, momentum 11, decision-engine 58, ml 47, paper-trading 82: all passed
  • web: tsc, lint and build all clean

Five existing tests now set MULTI_CHAIN or COPY_TRADING_ENABLED for the multi-chain part they exercise. Each also asserts the new SOLANA_ONLY behaviour. No test was removed.

Not verified here: the server-side container stop, because there is no Docker daemon in the build environment. Audit section 21 has the check.

🤖 Generated with Claude Code

https://claude.ai/code/session_015vpuZ1UX4MXz7NCF7wrtDv


Generated by Claude Code

…ormance report

SYSTEM_PROFILE=SOLANA_ONLY (default) with COPY_TRADING_ENABLED=false:
- data-evm and copy-engine are behind compose profiles "evm" and "copy";
  deploy.sh turns profiles on from .env (scripts/compose-profiles.sh) and
  stops and removes the container of a worker that is off. A disabled
  worker started by hand only idles with a "disabled" heartbeat.
- ml skips the BSC / Robinhood cycle and their frozen validation sets;
  Solana ML is unchanged.
- copy trading reads SUSPENDED and cannot be resumed (409 COPY_DISABLED).
- the API refuses BSC / Robinhood BUY, SELL and new copy targets with 409
  CHAIN_DISABLED; System Health shows DISABLED, not failures; pages show
  a banner. Nothing is deleted; reversed in .env and redeployed.

New read-only Solana PAPER vs LIVE report (/api/analytics/solana-performance
and a dashboard page): by stage, hold time, entry quality and exit reason,
profit factor, drawdown, MFE / MAE, missed winners, false positives and
LIVE execution telemetry. Test for the Pump 6005 curve-complete sell
fallback to PumpSwap. docs/SOLANA_FIRST_PRODUCTION_AUDIT.md.

No change to Solana execution, the transaction guard, risk limits or sizes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vpuZ1UX4MXz7NCF7wrtDv
@yonixnetwork
yonixnetwork merged commit b9444a3 into main Oct 8, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants