Skip to content

feat: preserve openquant research platform work - #12

Draft
apexphere wants to merge 6 commits into
masterfrom
agent/rescue-openquant-platform
Draft

feat: preserve openquant research platform work#12
apexphere wants to merge 6 commits into
masterfrom
agent/rescue-openquant-platform

Conversation

@apexphere

Copy link
Copy Markdown
Owner

Summary

Preserves five local commits plus the selected research dashboard, diagnostics, regime versioning, strategy library, services, CLI, MCP, and tests before the source Mac user is removed.

Local .env files, Redis dumps, results, storage, temporary debugging scripts, build metadata, and nested worktrees are intentionally excluded.

Validation

  • Added content and the five existing local commits passed credential and large-file checks.
  • Historical whitespace issues remain in the rescued source.
  • Full tests were not rerun because local dependencies had already been removed during machine cleanup.

Wraps jesse CLI as 7 MCP tools (backtest, results, optimize,
write_strategy, read_strategy, list_strategies, detector_preview)
for autonomous strategy R&D via `python -m openquant_mcp`.

Backtest trade data written to disk at ~/.trading-harness/backtest-results/
to avoid Claude context truncation. Closes #8.
8th tool wraps POST /candles/import. Polls active-workers until
import completes so the agent knows when data is ready for backtest.
Closes #9.
wait_for_session now re-fetches up to 3 times (2s apart) when
status=finished but trades are empty while metrics.total > 0.
Adds warning field to response when retries are exhausted.
Closes #10.
After writing strategies/{name}/__init__.py, the tool runs
git add + commit and returns the short commit hash. Gracefully
returns commit=null if git is unavailable. Closes #11.
Replaced git auto-commit with JSONL version log at
~/.trading-harness/strategy-versions/{name}.jsonl.
Each write appends a timestamped entry with version number,
session_id, and full code. Response includes version/previous_version
for harness traceability. Strategy path is hardcoded in jesse
(strategies/ relative to CWD), so Option B from #11. Closes #11.
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.

1 participant