chore: archive APEX stack; remove SEDA from hedge path - #72
Conversation
Move APEX/Radar/Pulse/Guard/Reflect, quoting_engine, adapters, deploy templates, and related tests to _archive/. Hedge K2 inputs now come from Hyperliquid funding history via strategies/cfi_funding.py with no SEDA oracle. Co-authored-by: Cursor <cursoragent@cursor.com>
sdb001
left a comment
There was a problem hiding this comment.
Thanks, the runtime cleanup direction makes sense, and the focused checks pass locally. I think this needs a docs cleanup before merge.
Blocking: this PR archives/removes the live APEX/Radar/Pulse/Guard/Reflect CLI surfaces, but README.md still advertises them as active. Examples include hl apex run --mainnet, the agent skill table pointing at skills/apex, skills/radar, skills/pulse, skills/guard, skills/reflect, command examples like hl guard run, hl radar run, hl pulse run, hl reflect run, the command summary listing those commands, the MCP section still claiming 24 tools including APEX/Radar/REFLECT, and the architecture block still listing the old command/modules/skills paths.
After this PR, those paths are under _archive/ or the commands are no longer registered in cli/main.py, so new users and MCP host setup docs would be wrong. Please either move that README content into the archive docs or rewrite it as explicitly legacy/archive-only, and update the MCP tool count/list to match the surviving server.
Local checks run:
- .venv312-review/bin/python -m pytest tests/test_mcp_gateway_context.py tests/test_entrypoint.py = 27 passed
- .venv312-review/bin/python -m py_compile cli/commands/hedge.py strategies/cfi_funding.py cli/mcp_server.py scripts/entrypoint.py
Co-authored-by: Cursor <cursoragent@cursor.com>
sdb001
left a comment
There was a problem hiding this comment.
Re-reviewed the docs follow-up. The README blocker is resolved.
The active docs now describe the CFI hedge + MCP surface, list the surviving MCP tools, and move the APEX/Radar/Pulse/Guard/Reflect material into legacy/archive framing instead of advertising those commands as active.
Checks run:
- .venv312-review/bin/python -m pytest tests/test_mcp_gateway_context.py tests/test_entrypoint.py = 27 passed
- .venv312-review/bin/python -m py_compile cli/commands/hedge.py strategies/cfi_funding.py cli/mcp_server.py scripts/entrypoint.py
Summary
seda_oracle.py), deploy templates, yex configs, and related tests to_archive/strategies/cfi_funding.py— HL-only K2/r_ema inputs; hedge no longer imports SEDAcli/main.py; removeapex_run/radar_run/reflect_runMCP tools (keepfunding_hedge_*)Stacked on #68 (
jl/archive-legacy-strategies-keep-cfi-hedge).SEDA removal
quoting_engine/feeds/seda_oracle.py_archive/quoting_engine/feeds/seda_oracle.pycli/commands/hedge.py→ seda_oraclestrategies/cfi_funding.py(HLfundingHistoryreplay)No active code path calls SEDA.
Test plan
pytest -q— 620 passed, 1 skippedhl hedge propose --helpfrom strategies.cfi_hedge import build_cfi_hedge_proposal; from strategies.cfi_funding import fetch_cfi_funding_snapshotMade with Cursor