Skip to content

feat: rebalance exposure caps, cost-aware rebalancing, correlation, yield composition (#346 #347 #348 #349) - #388

Merged
Abidoyesimze merged 1 commit into
Neurowealth:mainfrom
devsimze:feat/portfolio-rebalance-analytics
Aug 29, 2026
Merged

feat: rebalance exposure caps, cost-aware rebalancing, correlation, yield composition (#346 #347 #348 #349)#388
Abidoyesimze merged 1 commit into
Neurowealth:mainfrom
devsimze:feat/portfolio-rebalance-analytics

Conversation

@devsimze

Copy link
Copy Markdown
Contributor

What this does

Four related risk/analytics capabilities for the agent and portfolio analytics:

Pure-core / DB-glue split is maintained throughout so the statistics are unit-testable.

Verification

  • tsc --noEmit clean
  • eslint src tests clean
  • prettier --check clean
  • redocly lint docs/openapi.yaml — API description valid
  • 107 test suites / 1478 tests pass (unit + integration)
  • New unit tests: exposureCaps (25), rebalanceCost (15), correlation (12), yieldComposition; new integration tests for e.g. rebalance cost gate, /correlation, /yield-breakdown.

Documentation

Closes #346
Closes #347
Closes #348
Closes #349

…ield composition

- Neurowealth#346: per-protocol exposure caps with risk-tolerance defaults, residual
  routing and tighten-only merge; wired into the agent rebalance loop.
- Neurowealth#347: grounded rebalance cost model (network fee, price impact, entry/exit)
  with a conservative payback gate, replacing the flat /1e18 heuristic.
- Neurowealth#348: portfolio APY correlation matrix + weighted diversification score
  endpoint (null-on-degenerate, mandatory caveat).
- Neurowealth#349: yield base/incentive decomposition with haircuted effective APY,
  schema + migration, flag-gated optimizer/agent consumption, emissions risk
  modifier, and a yield-breakdown endpoint.

Adds unit + integration tests, OpenAPI/docs updates.

Closes Neurowealth#346
Closes Neurowealth#347
Closes Neurowealth#348
Closes Neurowealth#349
@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@devsimze Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Abidoyesimze
Abidoyesimze merged commit be13f46 into Neurowealth:main Aug 29, 2026
8 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

2 participants