Skip to content

Add Phase 9: Migration & backward compatibility#7

Merged
Ibrahim-3d merged 1 commit into
mainfrom
claude/continue-next-stage-yP5ow
Feb 11, 2026
Merged

Add Phase 9: Migration & backward compatibility#7
Ibrahim-3d merged 1 commit into
mainfrom
claude/continue-next-stage-yP5ow

Conversation

@Ibrahim-3d
Copy link
Copy Markdown
Owner

  • Archive original monolithic scripts (10,200 lines) to legacy/ for reference
  • Convert root-level pt_*.py files to thin wrappers that delegate to the
    new modular src/powertrader/ package (preserves CLI interface for Hub
    subprocess spawning and coin-subfolder trainer copies)
  • Add migration checker (scripts/migrate.py) that validates package imports,
    entry points, legacy backups, thin wrappers, and data path resolution
  • Add behavioral comparison tool (scripts/compare_outputs.py) with 19 checks
    covering signal format, config parsing, pattern distance, entry/DCA/exit
    decisions, and symbol conversion — all passing
  • Migrate test_dca_engine.py from monolithic pt_trader imports to the
    extracted DCAEngine class (560 tests passing, 0 failures)
  • Add legacy/ to ruff exclude in pyproject.toml

https://claude.ai/code/session_01RRYFBk1mpQir3m1NfJC23q

- Archive original monolithic scripts (10,200 lines) to legacy/ for reference
- Convert root-level pt_*.py files to thin wrappers that delegate to the
  new modular src/powertrader/ package (preserves CLI interface for Hub
  subprocess spawning and coin-subfolder trainer copies)
- Add migration checker (scripts/migrate.py) that validates package imports,
  entry points, legacy backups, thin wrappers, and data path resolution
- Add behavioral comparison tool (scripts/compare_outputs.py) with 19 checks
  covering signal format, config parsing, pattern distance, entry/DCA/exit
  decisions, and symbol conversion — all passing
- Migrate test_dca_engine.py from monolithic pt_trader imports to the
  extracted DCAEngine class (560 tests passing, 0 failures)
- Add legacy/ to ruff exclude in pyproject.toml

https://claude.ai/code/session_01RRYFBk1mpQir3m1NfJC23q
@Ibrahim-3d Ibrahim-3d merged commit f5f251d into main Feb 11, 2026
0 of 3 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