Skip to content

chore: archive APEX stack; remove SEDA from hedge path - #72

Merged
sdb001 merged 2 commits into
jl/archive-legacy-strategies-keep-cfi-hedgefrom
jl/archive-apex-seda-second-pass
Jul 3, 2026
Merged

chore: archive APEX stack; remove SEDA from hedge path#72
sdb001 merged 2 commits into
jl/archive-legacy-strategies-keep-cfi-hedgefrom
jl/archive-apex-seda-second-pass

Conversation

@JaeLeex

@JaeLeex JaeLeex commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Archive APEX/Radar/Pulse/Guard/Reflect CLI commands, modules, skills, adapters, quoting_engine (incl. seda_oracle.py), deploy templates, yex configs, and related tests to _archive/
  • Add strategies/cfi_funding.py — HL-only K2/r_ema inputs; hedge no longer imports SEDA
  • Unmount archived commands from cli/main.py; remove apex_run/radar_run/reflect_run MCP tools (keep funding_hedge_*)
  • Update README, skill.md, entrypoint, validate_agent_cli for hedge-only product

Stacked on #68 (jl/archive-legacy-strategies-keep-cfi-hedge).

SEDA removal

Before After
quoting_engine/feeds/seda_oracle.py _archive/quoting_engine/feeds/seda_oracle.py
cli/commands/hedge.py → seda_oracle strategies/cfi_funding.py (HL fundingHistory replay)
Display: "SEDA live" "HL fundingHistory"

No active code path calls SEDA.

Test plan

  • pytest -q620 passed, 1 skipped
  • hl hedge propose --help
  • from strategies.cfi_hedge import build_cfi_hedge_proposal; from strategies.cfi_funding import fetch_cfi_funding_snapshot

Made with Cursor

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 sdb001 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 sdb001 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@sdb001
sdb001 merged commit 5d90420 into jl/archive-legacy-strategies-keep-cfi-hedge Jul 3, 2026
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