Files
xnessomGitHubxnessomgoogle-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2f11cb9b3d 🧪 Jules02: Integration test coverage — Institutional Capital Feedback Loop (#1180)
* 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>
2026-05-14 03:46:19 +00:00
..