mirror of
https://github.com/triqbit/mt5-ai-xauusd-trader.git
synced 2026-11-02 06:56:15 +00:00
* test: 🧪 Jules02: Integration test coverage — Institutional Capital Feedback Loop Implemented a high-value integration test that verifies the end-to-end institutional capital feedback loop. This path ensures that the system dynamically adapts its risk exposure based on realized performance. Key changes: - Added `tests/test_institutional_feedback_loop.py` to verify the path: Allocation -> Execution -> Feedback -> Adaptation -> Audit. - Enhanced `main.py` trade closing logic to call the `CapitalAllocator` with real PnL data, closing the loop between execution and risk strategy. - Verified trace correlation using `structlog` context variables across audit and trade logging. Co-authored-by: xnessom <255288032+xnessom@users.noreply.github.com> * feat: 🧪 Jules02: Integration test coverage — Institutional Capital Feedback Loop Implemented and verified the end-to-end institutional feedback loop. This ensures that the system dynamically scales risk based on real performance outcomes. Key Improvements: - Added `tests/test_institutional_feedback_loop.py` (E2E integration test). - Enhanced `main.py` to feed realized PnL back to `CapitalAllocator`. - Updated `docs/trading/CAPITAL_ALLOCATOR.md` to document the loop. - Fixed linting violations and confirmed trace correlation across modules. Co-authored-by: xnessom <255288032+xnessom@users.noreply.github.com> --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: xnessom <255288032+xnessom@users.noreply.github.com>